linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / CombN.schelp
blobcf820cc03ee15c95010143ba7539bf3d6ad05a16
1 class:: CombN
2 summary:: Comb delay line with no interpolation.
3 related:: Classes/CombC, Classes/CombL, Classes/BufCombN
4 categories::  UGens>Delays
7 Description::
9 Comb delay line with no interpolation. See also  link::Classes/CombL::
10 which uses linear interpolation, and  link::Classes/CombC::  which uses
11 cubic interpolation. Cubic interpolation is more computationally
12 expensive than linear, but more accurate.
15 classmethods::
17 method::ar, kr
19 argument::in
20 The input signal.
22 argument::maxdelaytime
23 The maximum delay time in seconds. Used to initialize the delay buffer size.
25 argument::delaytime
26 Delay time in seconds.
28 argument::decaytime
29 Time for the echoes to decay by 60 decibels. If this time is negative then the feedback coefficient will be negative, thus emphasizing only odd harmonics at an octave lower.
31 argument::mul
32 Output will be multiplied by this value.
34 argument::add
35 This value will be added to the output.
37 Examples::
39 code::
41 // These examples compare the variants, so that you can hear the difference in interpolation
43 // Comb used as a resonator. The resonant fundamental is equal to
44 // reciprocal of the delay time.
45 { CombN.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;
47 { CombL.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;
49 { CombC.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;
51 // with negative feedback:
52 { CombN.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), -0.2) }.play;
54 { CombL.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), -0.2) }.play;
56 { CombC.ar(WhiteNoise.ar(0.01), 0.01, XLine.kr(0.0001, 0.01, 20), -0.2) }.play;
58 // used as an echo.
59 { CombN.ar(Decay.ar(Dust.ar(1,0.5), 0.2, WhiteNoise.ar), 0.2, 0.2, 3) }.play;