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

From: Erik Nomitch <enomitch@email-addr-hidden>
Date: Mon Jan 26 2009 - 20:44:24 EET

Hi all,

Thank you for all the great responses. I'm currently trying the
ecasound .ecs file solution. Everything mixes in the correct places,
but I'm getting weird artifacts. I have a directory of evidence/clues
here: http://eriknomitch.com/misc/ecasound/

For this example, I'm mixing in four different instances of sample.wav
into out.wav. On samples 1 and 3 the sample seems to play for a split
second and before it's supposed to and then continues playing as you
can see here: http://eriknomitch.com/misc/ecasound/ss.png

(using ecasound 2.5.2, happens when I compile from source and when I
use my package manager)

I couldn't subscribe to the ecasound mailing list for some reason so I
thought I'd try here. I have tried this with a few different .wav
files with similar hiccups. This also happens when I send to -o:alsa

Thanks,
Erik Nomitch

On Sat, Jan 24, 2009 at 10:46 PM, Erik Nomitch <enomitch@email-addr-hidden> wrote:
> Hi,
>
> I'm making a random "beat" generator based on a directory tree of
> samples and a map file. Currently, it shuffles sample order and
> creates a list of samples and their corresponding start time (example
> list below).
>
> 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
> at: 6.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1S.wav
> at: 8.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_aOrig.wav
> at: 10.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01.wav
> at: 12.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_ST.wav
> at: 14.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_VT1.wav
> at: 4.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2A.wav
> at: 6.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2S.wav
> at: 8.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1A.wav
> at: 10.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1S.wav
> at: 12.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_aOrig.wav
> at: 14.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01.wav
> at: 16.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_ST.wav
> at: 18.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_VT1.wav
> at: 4.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2A.wav
> at: 8.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_C2S.wav
> at: 12.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1A.wav
> at: 16.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_T1S.wav
> at: 20.0 play /home/tux/.projects/elign/808/clap/808Clap-Kult_aOrig.wav
> at: 24.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01.wav
> at: 28.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_ST.wav
> at: 32.0 play /home/tux/.projects/elign/808/clap/808Clap-R8_01_VT1.wav
> etc...
>
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Jan 27 00:08:48 2009

This archive was generated by hypermail 2.1.8 : Tue Jan 27 2009 - 00:08:49 EET