/usr/share/SuperCollider/HelpSource/Classes/QuadN.schelp is in supercollider-common 1:3.6.3~repack-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | class:: QuadN
summary:: General quadratic map chaotic generator
categories:: UGens>Generators>Chaotic
related:: Classes/QuadL, Classes/QuadC
description::
A non-interpolating sound generator based on the difference equation:
code::
x[n+1] = a * pow(x[n], 2) + b * x[n] + c
::
warning:: revise formulae conversion to c like code ::
classmethods::
method:: ar
argument:: freq
Iteration frequency in Hertz
argument:: a
Equation variable
argument:: b
Equation variable
argument:: c
Equation variable
argument:: xi
Initial value of x
argument:: mul
argument:: add
examples::
code::
// default params
{ QuadN.ar(SampleRate.ir/4) * 0.2 }.play(s);
::
code::
// logistic map
// equation: x1 = -r*x0^2 + r*x0
(
{ var r;
r = MouseX.kr(3.5441, 4); // stable range
QuadN.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;
}.play(s);
)
::
code::
// logistic map as frequency control
(
{ var r;
r = MouseX.kr(3.5441, 4); // stable range
SinOsc.ar(QuadN.ar(40, r.neg, r, 0, 0.1, 800, 900)) * 0.4;
}.play(s);
)
::
|