Re: [ecasound] understanding loop device use

From: Rémi BOURIER <untruclong.durabombarder@email-addr-hidden>
Date: Mon Jul 21 2008 - 16:15:24 EEST

Hi,

I understood Loop with this ecasound rule :

"A chain setup must have one input and one output".

so on
-a:1 one input "bla bla bla" one output
-a: 2 one _input ""bla bla bla" one output.

Writing :
-a 1,2 mix or split the lines.

Now loop is a sort of pipe :

-a:1 one_input "bla bla bla" "a output loop pipe"
-a:2,3,4 "the input loop pipe"
-a:2 some plugin
-a:3 other plugin
-a:2 other plugin
-a:2,3,4 one output

a:1 -> output Pipe -> a:2,3,4 input pipe -> a:2 -> something -> -a:2,3,4 -> Output
                                                          -> a:3 -> other ->
                                                          -> a:4 -> Other ->

A true exemple from true life a multiband limitter for FM transmitter a dirty sound :
-z:mixmode,sum -f:24,2,96000
-a:CSA -f:24,2,96000 -i alsahw,0,0 -el:fastLookaheadLimiter,0,-2,0.030 -el:fastLookaheadLimiter,0,-4,0.523 -el:fastLookaheadLimiter,6,-0.1,2 -o:loop,1

-a:LOW,MED,HIG -i:loop,1

-a:LOW -el:bandpass_iir,1500,3000,2 -el:fastLookaheadLimiter,0,-0.5,0.060
-a:MED -el:bandpass_iir,7500,7000,2 -el:fastLookaheadLimiter,0,-5,0.050
-a:HIG -el:bandpass_iir,14000,6000,2 -el:fastLookaheadLimiter,0,-20,0.030

-a:LOW,MED,HIG -f:16,2,96000 -o stdout

Best regards,
Remi+

> Message du 21/07/08 12:41
> De : "Dubphil"
> A : ecasound-list@email-addr-hidden
> Copie à :
> Objet : [ecasound] understanding loop device use
>
>
> Hello,
>
> I definitevely not understood how to use the loop devices, here is what
> I want :
>
> # ecasound chainsetup file
>
> # general
> -b:128 -r:-1 -z:intbuf -z:db,100000 -n:"test" -X -z:noxruns -z:nopsr
> -z:mixmode,avg
>
> # audio inputs
> -a:1 -f:f32_le,2,48000 -i:jack
> -a:2 -f:f32_le,2,48000 -i:jack
> -a:3 -f:f32_le,2,48000 -i:"loop,1",1
> -a:4 -f:f32_le,2,48000 -i:"loop,2",2
> -a:5 -f:f32_le,2,48000 -i:"loop,1",1
> -a:6 -f:f32_le,2,48000 -i:"loop,2",2
>
> # audio outputs
> -a:1 -f:f32_le,2,48000 -o:"loop,1",1
> -a:2 -f:f32_le,2,48000 -o:"loop,2",2
> -a:3,4,5,6 -f:f32_le,2,48000 -o:jack
>
> and here is what ecasound tells :
>
> dubphil@email-addr-hidden ~ $ ecasound -c -s test.ecs
> ********************************************************************************
> * ecasound v2.4.7pre4_2.5.0 (C) 1997-2008 Kai Vehmanen and others
> ********************************************************************************
> - [ Chainsetup created (file) ]
> ------------------------------------------------
> (eca-chainsetup-parser) Setting buffersize to (samples) 128.
> (eca-chainsetup-parser) Raised-priority mode disabled.
> (eca-chainsetup-parser) Enabling extra buffering on realtime devices.
> (eca-chainsetup-parser) Using double-buffer of 100000 sample frames.
> (eca-chainsetup-parser) Setting chainsetup name to "test".
> (eca-chainsetup-parser) Updating outputs (rw-mode).
> (eca-chainsetup-parser) Ignoring xruns during processing.
> (eca-chainsetup-parser) Disabling precise-sample-rates with OSS audio
> ... devices.
> (eca-chainsetup-parser) Enabling 'avg' mixmode.
> (eca-chainsetup) Unable to connect: Chain "3" is not valid. Following
> errors were
> ... detected:
> (eca-chainsetup) Chain "3" is not connected to any input. All chains
> must have
> ... exactly one valid input. (2.1-NO-CHAIN-INPUT)
> (eca-chainsetup) Unable to connect: Chain "4" is not valid. Following
> errors were
> ... detected:
> (eca-chainsetup) Chain "4" is not connected to any input. All chains
> must have
> ... exactly one valid input. (2.1-NO-CHAIN-INPUT)
> (eca-chainsetup) WARNING: Input "loop,1" is not connected to any chain.
> ... (3.1-DISCON-INPUT)
> (eca-chainsetup) WARNING: Input "loop,2" is not connected to any chain.
> ... (3.1-DISCON-INPUT)
> (eca-session) Chainsetup loaded from 'test.ecs' is not valid!
> - [ Session created ]
> ----------------------------------------------------------
> ---
> ecasound: ERROR: [ECA-SESSION] : "Errors parsing session-level options.
> Unable to create session."
>
> I believed I could give a chain an output loop device and use this loop
> as input for several other chains...
> am I wrong ?
>
> Regards
>
> Philippe
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Ecasound-list mailing list
> Ecasound-list@email-addr-hidden
> https://lists.sourceforge.net/lists/listinfo/ecasound-list
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Mon Jul 21 20:15:02 2008

This archive was generated by hypermail 2.1.8 : Mon Jul 21 2008 - 20:15:02 EEST