A sample-and-hold UGen that outputs the last value before the input changed
more than a threshold. Change is based on the absolute of the differentiation of
input signal.
Examples
// distortion
play {
val in = SinOsc.ar(262)
val thresh = MouseX.kr(1.0e-3, 2.0, 1, lag = 1)
thresh.poll(5, "thresh")
LeakDC.ar(LastValue.ar(in, thresh)) * 0.1
}
A sample-and-hold UGen that outputs the last value before the input changed more than a threshold. Change is based on the absolute of the differentiation of input signal.
Examples
Slew