Hello!
Is there a way of analysing the zero crossings of a whole file without needing to wait for the whole file to play in order to do the analysis?
Here is the example of the help file where the analysis happens till the moment you stop the audio. I would like to analyse some larger files so it would be great if there is a solution.
(
p = Platform.resourceDir +/+ "sounds/a11wlk01.wav";
b = Buffer.read(s, p);
z = Buffer.alloc(s, 100000);
)
// analyse buffer
(
{
var src = PlayBuf.ar(1, b, BufRateScale.ir(b), doneAction: 2);
ZeroXBufWr.ar(src, b, z, startWithZeroX: 0, doneAction: 2);
}.play
)
thank you!