Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / Changed.schelp
blobebecd50282f0054d1d481c8d8e1b181386f71079
1 class:: Changed
2 categories:: UGens>Triggers, UGens>Filters>Linear
3 summary:: Triggers when a value changes
5 description::
6 Triggers when a value changes.
8 classmethods::
9 method:: ar, kr
10 A special case fixed filter.
12 argument:: input
13 signal input
14 argument:: threshold
15 threshold
17 discussion::
18 Implements the formula:
19 code::
20 out(i) = abs(in(i) - in(i-1)) > thresh
23 examples::
25 detect changes in a signal:
26 code::
29         var changingSignal = LFNoise0.ar(1000);
30         var changed = Changed.ar(changingSignal);
31         [changingSignal, changed]
32 }.plot2