Hi everyone,
I’d like to do some time stretching using wavesets or even better, control the ‘playhead’ position. I’ve looked at the ZeroXBufRd & TZeroXBufRd but I’m a little lost.
I got this far…
b = Buffer.read(s, Platform.resourceDir +/+ “sounds/a11wlk01.wav”);
thanks
Neil
2 Likes
You can do it with Alberto De Campo quark as shown here:
// figure 16.22 - a Wavesets object
w = Wavesets.from("sounds/a11wlk01.wav");
w.xings; // all integer indices of the zero crossings found
w.numXings; // the total number of zero crossings
w.lengths; // lengths of all wavesets
w.amps; // peak amplitude of every waveset
w.maxima; // index of positive maximum value in every waveset
w.minima; // index of negative minimum value in every waveset
w.fracXings; // fractional zerocrossing points
w.fracLengths; // and lengths: allows more precise looping.
w.lengths.plot; // show distribution of lengths
w.amps.plot;
// get data for a single waveset: frameIndex, length (in frames), dur
w.frameFor(140, 1);
This file has been truncated. show original
but also work with an updated version using other syntax, it is called WavesetEvent:
1 Like