2 summary:: Search a buffer for a value
3 categories:: UGens>Buffer
6 Search a buffer for a value.
22 t = Array.series(max, 0, 1).curdle(0.06).scramble.flat;
23 b = Buffer(s, t.size, 1);
25 // alloc and set the values
26 s.listSendMsg( b.allocMsg( b.setnMsg(0, t) ) );
30 var index, in, out, f0, fdiff;
33 input = MouseX.kr(0, max).round(1); // round to precision
34 index = DetectIndex.kr(bufnum, input);
36 SinOsc.ar(index.linexp(0, max, 200, 700)) * 0.1