Forgot a help fix: Drag a dock's title bar, not divider, to reposition
[supercollider.git] / HelpSource / Classes / GbmanN.schelp
bloba1ca8b8b162433da089c480e5ee62730d202f952
1 class:: GbmanN
2 summary:: Gingerbreadman map chaotic generator
3 categories:: UGens>Generators>Chaotic
4 related:: Classes/GbmanL
6 description::
7 A non-interpolating sound generator based on the difference equations:
9 code::
10         x[n+1] = 1 - y[n] + abs(x[n])
11         y[n+1] = x[n]
13 warning:: reviser formulae converted to c like code ::
15 The behavior of the system is only dependent on its initial conditions.
17 Reference: emphasis:: Devaney, R. L. "The Gingerbreadman." Algorithm 3, 15-16, Jan. 1992. ::
19 classmethods::
20 method:: ar
21 argument:: freq
22 Iteration frequency in Hertz
23 argument:: xi
24 Initial value of x
25 argument:: yi
26 Initial value of y
27 argument:: mul
28 argument:: add
30 examples::
31 code::
32 // default initial params
33 { GbmanN.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);
35 // change initial params
36 { GbmanN.ar(MouseX.kr(20, SampleRate.ir), -0.7, -2.7) * 0.1 }.play(s);
38 // wait for it...
39 { GbmanN.ar(MouseX.kr(20, SampleRate.ir), 1.2, 2.0002) * 0.1 }.play(s);
41 // as a frequency control
42 { SinOsc.ar(GbmanN.ar(40)*400+500)*0.4 }.play(s);