hsc3-0.2: Help/UGen/Trigger/lastValue.help.lhs
lastValue in diff
Output the last value before the input changed more than a threshhold.
> let x = mouseX KR 100 400 Linear 0.1
> in audition (out 0 (sinOsc AR (lastValue x 40) 0 * 0.1))
> let { x = mouseX KR 0.1 4 Linear 0.1
> ; f = abs (lastValue x 0.5 - x) * 400 + 200 }
> in audition (out 0 (sinOsc AR f 0 * 0.2))