2 categories:: UGens>Buffer, UGens>Delays
3 summary:: Write to a buffer for a DelTapRd UGen
4 related:: Classes/DelTapRd
7 Write to a buffer for a link::Classes/DelTapRd:: UGen
14 the buffer to write signal into. Max delay time is based on buffer size.
16 the signal to write to the buffer.
18 phase - DelTapWr outputs its current sample value for use in the phase argument in DelTapRd
22 // a Buffer for the UGens to use, one second at the current sample rate
23 b = Buffer.alloc(s, s.sampleRate * 1, 1);
25 // write a signal into a delay, tap it at mutiple times
26 SynthDef(\test, {arg buffer;
27 var src, tapPhase, tap1, tap2, tap3;
28 src = WhiteNoise.ar(0.2) * Decay.kr(Dust.kr(3), 0.2);
29 tapPhase = DelTapWr.ar(buffer, src);
30 #tap1, tap2, tap3 = DelTapRd.ar(buffer, tapPhase,
31 [0.2, 0.27, 0.303], // tap times
33 [1.0, 0.4, 0.2] // muls for each tap
35 Out.ar(0, [src + tap2, tap1 + tap3])
38 x = Synth(\test, [\buffer, b]);
44 // a Buffer for the UGens to use
45 b = Buffer.alloc(s, 44100, 1);
47 // write a signal into a delay, tap it at mutiple times
48 SynthDef(\write, {arg buffer, cout;
49 var src, tapPhase, tap1, tap2, tap3;
50 src = WhiteNoise.ar(0.2) * Decay.kr(Dust.kr(3), 0.7);
51 tapPhase = DelTapWr.ar(buffer, src);
52 Out.kr(cout, tapPhase);
55 SynthDef(\readFilt, {arg buffer, cin;
58 src = DelTapRd.ar(buffer, phase, [0.01, 0.2]);
59 filt = BPF.ar(src, 880, 0.01) * 10;
65 x = Synth(\write, [\buffer, b, \cout, c]);
66 y = Synth(\readFilt, [\buffer, b, \cin, c]);