[LAU] mixing multiple samples into a single audio file based on start times

Joel Roth joelz at pobox.com
Sun Jan 25 12:23:37 EST 2009


On Sat, Jan 24, 2009 at 10:46:23PM -0700, Erik Nomitch wrote:
> I need a good way to mix all of these seperate samples into one single
> audio file based on the time at which each starts at.  Any
> recommendations or thoughts would be appreciated.  File format doesn't
> matter, I'll use whatever is easiest.
> 
> Thanks,
> Erik Nomitch
> 
> ex:
> at: 0.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2A.wav
> at: 2.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2S.wav
> at: 4.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1A.wav


Here is an idea, not tested... that is supported by Ecasound 2.5.2

-------------------- setup.ecs ----------------
-a:1 -i:playat,0.0,/home/tux/.projects/elign/808/clap/808Clap-Kult_C2A.wav
-a:2 -i:playat,2.0,/home/tux/.projects/elign/808/clap/808Clap-Kult_C2S.wav
-a:3 -i:playat,4.0,/home/tux/.projects/elign/808/clap/808Clap-Kult_T1A.wav

-a:all -o:alsa,default
-----------------------------------------------

then 

	ecasound setup.ecs

or for diagnostic purposes:

	ecasound -c setup.ecs

    start

See 'man ecsasound' for details, or any of the other fine
documentation.

Hope this helps,

Joel

-- 
Joel Roth



More information about the Linux-audio-user mailing list