/usr/share/SuperCollider/HelpSource/Classes/FOS.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 55 56 57 58 59 60 61 62 63 64 65 66 | class:: FOS
summary:: First order filter section.
related:: Classes/SOS
categories:: UGens>Filters>Linear
Description::
A standard first order filter section. Filter coefficients are given
directly rather than calculated for you. Formula is equivalent to:
code::
out(i) = (a0 * in(i)) + (a1 * in(i-1)) + (b1 * out(i-1))
::
classmethods::
method::ar, kr
argument::in
Signal input.
argument::a0
See formula above.
argument::a1
See formula above.
argument::b1
See formula above.
argument::mul
argument::add
Examples::
code::
(
// same as OnePole
{ var x;
x = LFTri.ar(0.4, 0, 0.99);
FOS.ar(LFSaw.ar(200, 0, 0.2), 1 - x.abs, 0.0, x)
}.play;
)
(
// same as OneZero
{ var x;
x = LFTri.ar(0.4, 0, 0.99);
FOS.ar(LFSaw.ar(200, 0, 0.2), 1 - x.abs, x, 0.0)
}.play;
)
(
// same as OnePole, kr
{ var x, ctl;
x = LFTri.kr(0.2, 0, 0.99);
ctl = FOS.kr(LFSaw.kr(8, 0, 0.2), 1 - x.abs, 0.0, x);
LFTri.ar(ctl * 200 + 500);
}.play;
)
::
|