linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / CombL.schelp
blobc318bb40c35a3158cec0fa652e167136c1e2a1d7
1 class:: CombL
2 summary:: Comb delay line with linear interpolation.
3 related:: Classes/CombC, Classes/CombN, Classes/BufCombL
4 categories::  UGens>Delays
7 Description::
9 Comb delay line with linear interpolation. See also  link::Classes/CombN::
10 which uses no interpolation, and  link::Classes/CombC::  which uses cubic
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 { CombL.ar(Decay.ar(Dust.ar(1,0.5), 0.2, WhiteNoise.ar), 0.2, 0.2, 3) }.play;