Re: [LAU] Creating evenly spaced sample chains?

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Fri May 03 2013 - 18:51:25 EEST

Janus wrote:
> I'd like to chain samples into one new sample such that each input
> sample starts at a multiple of a given time value in the output sample
> (basically an evenly spaced concatenation). All input samples share the
> same format but differ in length. If a sample is longer than the given
> time interval it's tail shall be cut off (overwritten by the next one),
> if it's shorter, silence shall be added to it's end.
>
> Do you know of a tool or can you think of a command pipeline that would
> establish this?

sox

> I tried sox so far but it seems that it's not up to the task.

Use "stats" to read the files' lengths, then construct a command line
using the "pad" and "trim" effects.

Regards,
Clemens
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri May 3 20:15:02 2013

This archive was generated by hypermail 2.1.8 : Fri May 03 2013 - 20:15:03 EEST