2 summary:: Triggered linear ramp
3 categories:: UGens>Triggers
7 Starts a linear raise by rate/sec from zero when trig input crosses from
8 non-positive to positive.
18 triggers when trig input crosses from non-positive to positive.
29 // using sweep to modulate sine frequency
32 trig = Impulse.kr(MouseX.kr(0.5, 20, 1));
33 SinOsc.ar(Sweep.kr(trig, 700) + 500, 0, 0.2)
38 // using sweep to index into a buffer
39 b = Buffer.read(s, Help.dir +/+ "sounds/a11wlk01.wav");
43 trig = Impulse.kr(MouseX.kr(0.5, 10, 1));
44 BufRd.ar(1, b, Sweep.ar(trig, BufSampleRate.ir(0)))
48 // backwards, variable offset
50 { var trig, pos, rate;
51 trig = Impulse.kr(MouseX.kr(0.5, 10, 1));
52 rate = BufSampleRate.ir(0);
53 pos = Sweep.ar(trig, rate.neg) + (BufFrames.ir(0) * LFNoise0.kr(0.2));
61 trig = Impulse.kr(MouseX.kr(0.5, 10, 1));
62 rate = Sweep.kr(trig, 2) + 0.5;
63 BufRd.ar(1, b, Sweep.ar(trig, BufSampleRate.ir(0) * rate))