Get the current number of allocated frames.
bufnum |
Buffer index. |
the current number of allocated frames.
.ir
method is not the safest choice. Since a buffer can be reallocated at any time, using .ir
will not track the changes.b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
// indexing with a phasor
{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;
// indexing by hand
{ BufRd.ar(1, b, K2A.ar(MouseX.kr(0, BufFrames.kr(b)))) }.play;
b.free