verdigris / splat

Generative audio library in Python
4 stars 3 forks source link

Add splat.data.Fragment.resample #17

Closed gctucker closed 8 years ago

gctucker commented 8 years ago

Add splat.data.Fragment.resample function to change the sample rate of the fragment and also stretch it in time using quadratic interpolation. A signal can also be used for the stretch ratio.

Warning: This does not run any filter so frequencies above sampling rate / 2 will cause spectrum overlap.