hi all,
Phasor can be used to feed BufRd with the frame number of a Buffer,
something like the example below.
I would like to retrieve the information in ms, how can I convert the
frames to milliseconds?
thanks,
Marcello
b=Buffer.read(s,Platform.resourceDir +/+ "sounds/a11wlk01.wav");
w=Bus.control(s,1);
SynthDef(\info,
{
arg buf;
var info,head,read,send;
info = BufFrames.kr(buf);
head = Phasor.ar(0,1,0,info);
read = BufRd.ar(1,buf,head);
//send = SendTrig.ar(Impulse.ar(24),0,head);
Out.ar(0,read!2);
Out.kr(w,head);
}
).add;
Synth(\info,[\buf,b]);
w.getSynchronous;
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/