On 03.05.2013 17:51, Clemens Ladisch wrote:
Use "stats" to read the files' lengths, then construct a command line
using the "pad" and "trim" effects.
I've hacked some (rather ugly) bash scripts together ... but they can
create evenly spaced (sample accurate) sample chains.
If you have a list of samples (format doesn't matter as long as sox can
read it) then eg
trimpad.sh list.txt kicks-long l 8
will create chains with 8 samples each, called 8_kicks-long_01.wav,
8_kicks-long_02.wav, ... for as long as there are 8 more samples in the
list (eg 80 samples will create ten chains). "l" just means a long
interval (defined in the script are long, medium and short intervals).
Trimmed samples fade out (no pops) and you can easily configure the
output format (depth, rate, channels).
I've also created a helper script to create lists of suitable samples
for the intervals long, medium and short (so to create a list of short
samples which don't get trimmed in the chaining process for example).
If anyone is interested, let me know.
thx bye
vvd
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user