2 summary:: demand rate reset
3 categories:: UGens>Demand
6 The reset of a demand ugen can be controlled "from the outside" by the reset input of the link::Classes/Demand:: or link::Classes/Duty:: UGen, which consumes the chain of demands. Dreset allows to reset a subset of the chain internally.
11 a demand UGen, producing values which are passed through
13 a demand or any other UGen. When crossing from nonpositive to positive, it resets the first argument.
20 a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf));
21 freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340;
26 // reset when mouse button is pressed
30 a = Dreset(Dseries(0, 2, inf), MouseButton.kr);
31 freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340;
40 a = { Dreset(Dseries(0, 1, inf), Drand(0 ! nmax ++ 1, inf)) } ! 2;
41 Duty.ar(SampleDur.ir, 0, a) * (0.1 / nmax)