audioloop, loop, and select

View: New views
6 Messages — Rating Filter:   Alert me  

audioloop, loop, and select

by Jeremy Hughes-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've run into another problem. I need to loop a sample within a set
number of frames.
afaik this is what I'm supposed to do:

    $ ecasound -a:0 -i:audioloop,chirp.wav -o:loop,x -a:1
-i:select,0sa,200000sa,loop,x -o:alsa

but this is what I get:

    (eca-chainsetup) NOTE: using existing audio parameters
-f:s16_le,1,44100 for
    ... object 'audioloop (tried to open with -f:s16_le,2,44100).
    (eca-chainsetup) Opening input "audioloop", mode "read". Format: s16_le,
    ... channels 1, srate 44100, interleaved (locked params).
    ERROR: Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-SEQBASE:
    ... Couldn't open child object."

I have tried specifying "-f:32,1" for both chains, to no avail.

Thanks for your help so far,

Jeremy

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: audioloop, loop, and select

by Joel Roth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

On Mon, Jun 29, 2009 at 12:37:52PM +1200, Jeremy Hughes wrote:

> Hi all,
>
> I've run into another problem. I need to loop a sample within a set
> number of frames.
> afaik this is what I'm supposed to do:
>
>     $ ecasound -a:0 -i:audioloop,chirp.wav -o:loop,x -a:1
> -i:select,0sa,200000sa,loop,x -o:alsa
>
> but this is what I get:
>
>     (eca-chainsetup) NOTE: using existing audio parameters
> -f:s16_le,1,44100 for
>     ... object 'audioloop (tried to open with -f:s16_le,2,44100).
>     (eca-chainsetup) Opening input "audioloop", mode "read". Format: s16_le,
>     ... channels 1, srate 44100, interleaved (locked params).
>     ERROR: Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-SEQBASE:
>     ... Couldn't open child object."
>
> I have tried specifying "-f:32,1" for both chains, to no avail.

You could try putting the select directly on the input, instead
of on the loop device:

     $ ecasound -a:0 -i:audioloop,select,0sa,200000sa,chirp.wav -o:loop,x -a:1
 -i:loop,x -o:alsa

I haven't tried this myself....

> Thanks for your help so far,
>
> Jeremy
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ecasound-list mailing list
> Ecasound-list@...
> https://lists.sourceforge.net/lists/listinfo/ecasound-list
--
Joel Roth

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: audioloop, loop, and select

by Jeremy Hughes-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 3:20 PM, Joel Roth<joelz@...> wrote:
> Hello,
>
> You could try putting the select directly on the input, instead
> of on the loop device:
>
>     $ ecasound -a:0 -i:audioloop,select,0sa,200000sa,chirp.wav -o:loop,x -a:1
>  -i:loop,x -o:alsa
>
> I haven't tried this myself....

Famous last words :-)

The above endlessly loops the first 200000 samples of input. I want the
converse: loop the input until 200000 samples are reached.

Jeremy

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: audioloop, loop, and select

by Joel Roth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 03:44:25PM +1200, Jeremy Hughes wrote:

> On Mon, Jun 29, 2009 at 3:20 PM, Joel Roth<joelz@...> wrote:
> > Hello,
> >
> > You could try putting the select directly on the input, instead
> > of on the loop device:
> >
> >     $ ecasound -a:0 -i:audioloop,select,0sa,200000sa,chirp.wav -o:loop,x -a:1
> >  -i:loop,x -o:alsa
> >
> > I haven't tried this myself....
>
> Famous last words :-)

Not my last!
 
> The above endlessly loops the first 200000 samples of input. I want the
> converse: loop the input until 200000 samples are reached.

Hmm. I had to try:

        ecasound -i:,select,0,2,audioloop,something.wav

Which isn't any better. The following works provided you
specify the processing time in seconds.

        ecasound -i:audioloop,something.wav -t some_seconds


> Jeremy

--
Joel Roth

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: audioloop, loop, and select

by Jeremy Hughes-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 5:36 PM, Joel Roth<joelz@...> wrote:

> On Mon, Jun 29, 2009 at 03:44:25PM +1200, Jeremy Hughes wrote:
>> On Mon, Jun 29, 2009 at 3:20 PM, Joel Roth<joelz@...> wrote:
>> > Hello,
>> >
>> > You could try putting the select directly on the input, instead
>> > of on the loop device:
>> >
>> >     $ ecasound -a:0 -i:audioloop,select,0sa,200000sa,chirp.wav -o:loop,x -a:1
>> >  -i:loop,x -o:alsa
>> >
>> > I haven't tried this myself....
>>
>> Famous last words :-)
>
> Not my last!
>
>> The above endlessly loops the first 200000 samples of input. I want the
>> converse: loop the input until 200000 samples are reached.
>
> Hmm. I had to try:
>
>        ecasound -i:,select,0,2,audioloop,something.wav
>
> Which isn't any better. The following works provided you
> specify the processing time in seconds.
>
>        ecasound -i:audioloop,something.wav -t some_seconds

Righto. Wrote a small program to get the number of frames, divide by
sample rate to
get seconds, and bingo!

Cheers,

Jeremy

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: audioloop, loop, and select

by Joel Roth-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 05:57:23PM +1200, Jeremy Hughes wrote:
> > Joel Roth wrote:
> The following works provided you
> > specify the processing time in seconds.
> >
> >        ecasound -i:audioloop,something.wav -t some_seconds
>
> Righto. Wrote a small program to get the number of frames, divide by
> sample rate to get seconds, and bingo!

Yes, it's the "bingo!" that keeps us coming back. :-)

Joel
 
> Cheers,
>
> Jeremy
--
Joel Roth

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list