Re: Creating evenly spaced sample chains?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux