linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / FreeVerb2.schelp
blob8032c5322f36181fd6013fa3addf798d9815d39e
1 class:: FreeVerb2
2 summary:: A two-channel reverb
3 categories:: UGens>Reverbs
4 related:: Classes/FreeVerb, Classes/GVerb
6 description::
7 Coded from experiments with faust.
9 classmethods::
11 method:: ar
12 argument:: in1
13 input signal channel 1.
14 argument:: in2
15 input signal channel 2.
16 argument:: mix
17 dry/wet balance. range 0..1.
18 argument:: room
19 room size. rage 0..1.
20 argument:: damp
21 Reverb HF damp. range 0..1.
23 discussion::
24 Valid parameter range from 0 to 1. Values outside this range are clipped by the UGen.
26 examples::
27 code::
28 Server.default = s = Server.internal;
29 s.boot;
31 // FreeVerb2 - demo synthdef
33 SynthDef(\FreeVerb2x2, {|outbus, mix = 0.25, room = 0.15, damp = 0.5, amp = 1.0|
34         var signal;
36         signal = In.ar(outbus, 2);
38         ReplaceOut.ar(outbus,
39                 FreeVerb2.ar( // FreeVerb2 - true stereo UGen
40                         signal[0], // Left channel
41                         signal[1], // Right Channel
42                         mix, room, damp, amp)); // same params as FreeVerb 1 chn version
44 }).send(s);
47 // 2ch source
49 a = SynthDef(\src2x2, {
50         Out.ar(0,
51                 Decay.ar(Impulse.ar(1), 0.25, LFCub.ar(1200, 0, 0.1)) ! 2 +
52                 Pan2.ar(
53                         Decay.ar(Impulse.ar(1, pi), 0.1, WhiteNoise.ar(0.1)),
54                         LFNoise1.kr(0.5).range(-1, 1)
55                 )
56         )
57 }).play
60 // kick it in
61 z = Synth(\FreeVerb2x2, [\outbus, 0], addAction:\addToTail)
62 // experiment with some settings
63 z.set(\room, 0.7)
64 z.set(\mix, 0.33)
65 z.set(\damp, 0.9)
67 // silence
68 [a, z].do(_.free)
70 // crucial lib example
72 Patch({|mix =0.33, room = 0.25, damp = 0.7, amp = 0.1|
73         var signal;
75         signal = Decay.ar(Impulse.ar(1), 0.25, LFCub.ar(1200)) ! 2 +
76                 Pan2.ar(
77                         Decay.ar(Impulse.ar(1, pi), 0.1, WhiteNoise.ar),
78                         LFNoise1.kr(0.5).range(-1, 1)
79                 );
81         FreeVerb2.ar(
82                 signal[0], // Left channel
83                 signal[1], // Right Channel
84                 mix, room, damp, amp)
86 }).gui