Re: [LAU] Creating evenly spaced sample chains?

From: Janus <rdxesy@email-addr-hidden>
Date: Sat May 04 2013 - 10:18:38 EEST

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@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat May 4 12:15:02 2013

This archive was generated by hypermail 2.1.8 : Sat May 04 2013 - 12:15:02 EEST