A demand-rate UGen that, when triggered, resets the state of its in
argument.
===Examples===
// reset on mouse-click
play {
val in = Dreset(Dseries(0, 2, inf), MouseButton.kr)
val tr = Impulse.kr(5)
val v = Demand.kr(tr, in)
v.poll(tr)
val f = v * 30 + 340
SinOsc.ar(f) * 0.1
}
- See also
- Companion
- class