2 summary:: Index into a table with a signal.
3 related:: Classes/Index, Classes/Shaper
4 categories:: UGens>Buffer
9 The input signal value is truncated to an integer value and used as an
10 index into the table. Out-of-range index values are wrapped cyclically to
30 Output will be multiplied by this value.
35 This value will be added to the output.
43 // indexing into a table
45 t = [ 200, 300, 400, 500, 600, 800 ];
46 b = Buffer(s,t.size,1);
48 // alloc and set the values
49 s.listSendMsg( b.allocMsg( b.setnMsg(0, t) ).postln );
51 SynthDef("help-Index",{ arg out=0,i_bufnum=0;
56 MouseX.kr(0, t.size * 3)
62 }).play(s,[\i_bufnum,b.bufnum]);