2 summary:: Buffer writing oscillator.
3 related:: Classes/BufRd
4 categories:: UGens>Buffer
7 Write to a buffer at an index.
9 note:: BufWr (in difference to link::Classes/BufRd:: ) does not do multichannel expansion, because input is an array. ::
17 Input UGens (channelArray).
20 The index of the buffer to use.
23 Modulateable index into the buffer (has to be audio rate).
24 Warning:: The phase argument only offers precision for addressing 2**24 samples (about 6.3 minutes at 44100Hz) ::
27 1 means true, 0 means false. This is modulateable.
37 // allocate a buffer for writinig into
39 s.sendMsg("/b_alloc", 0, 44100 * 2);
43 //write into the buffer with a BufWr
47 in = SinOsc.ar(LFNoise1.kr(2, 300, 400), 0, 0.1);
48 BufWr.ar(in, 0, Phasor.ar(0, BufRateScale.kr(0) * rate, 0, BufFrames.kr(0)));
53 //read it with a BufRd
56 BufRd.ar(1, 0, Phasor.ar(0, BufRateScale.kr(0) * rate, 0, BufFrames.kr(0)))
63 y.set(\rate, 2.0.rand);