2 summary:: Slope of signal
3 categories:: UGens>Analysis, UGens>Filters>Linear, UGens>Maths
6 Measures the rate of change per second of a signal.
7 Formula implemented is:
10 out[i] = (in[i] - in[i-1]) * sampling_rate
16 Input signal to measure.
25 a = LFNoise2.ar(2000); // quadratic noise
26 b = Slope.ar(a); // first derivative produces line segments
27 c = Slope.ar(b); // second derivative produces constant segments
28 scale = 0.0002; // needed to scale back to +/- 1.0
29 [a, b * scale, c * scale.squared]
34 For another example of Slope see link::Classes/AbstractFunction#hypot#AbstractFunction:hypot::.