linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Changed.schelp
blob45ac2c1c7987b56746c56b7ffb8be2fe1e61fb9b
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:: in
13 signal input
14 argument:: thresh
15 threshold
17 discussion::
18 Implements the formula:
19 formula::
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