clean up indentation and spacing
[supercollider.git] / HelpSource / Classes / CombC.schelp
blob28dee9512821886ea27bf1fb5a05f410e97dadbe
1 class:: CombC
2 summary:: Comb delay line with cubic interpolation.
3 related:: Classes/CombL, Classes/CombN, Classes/BufCombC
4 categories::  UGens>Delays
7 Description::
9 Comb delay line with cubic interpolation. See also  link::Classes/CombN::
10 which uses no interpolation, and  link::Classes/CombL::  which uses linear
11 interpolation. Cubic interpolation is more computationally expensive
12 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 { CombC.ar(Decay.ar(Dust.ar(1,0.5), 0.2, WhiteNoise.ar), 0.2, 0.2, 3) }.play;