1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"824.41">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #d50007; min-height: 12.0px}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #000000}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #000000; min-height: 12.0px}
17 p
.p8
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
18 p
.p9
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #0000bf}
19 p
.p10
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #007300}
20 span
.s1
{color: #0000bf}
21 span
.s2
{color: #000000}
22 span
.s3
{color: #007300}
23 span
.Apple-tab-span
{white-space:pre
}
27 <p class=
"p1"><b>FreeVerb2
<span class=
"Apple-tab-span"> </span>A two-channel reverb
</b></p>
28 <p class=
"p2"><br></p>
29 <p class=
"p3"><b>FreeVerb2.ar(in1, in2, mix, room, damp, mul, add)
</b></p>
30 <p class=
"p4"><br></p>
31 <p class=
"p3">coded from experiments with faust.
</p>
32 <p class=
"p2"><br></p>
33 <p class=
"p3">Valid parameter range from
0 to
1. Values outside this range are clipped by the UGen.
</p>
34 <p class=
"p5"><br></p>
35 <p class=
"p3"><b>in1
</b> - input signal channel
1</p>
36 <p class=
"p3"><b>in2
</b> - input signal channel
2</p>
37 <p class=
"p3"><b>mix
</b> - dry/wet balance. range
0.
.1</p>
38 <p class=
"p3"><b>room
</b> - room size. rage
0.
.1</p>
39 <p class=
"p3"><b>damp
</b> - Reverb HF damp. range
0.
.1</p>
40 <p class=
"p2"><br></p>
41 <p class=
"p3">See also [
<b>FreeVerb
</b>]
</p>
42 <p class=
"p4"><br></p>
43 <p class=
"p4"><br></p>
44 <p class=
"p3"><b>Examples
</b></p>
45 <p class=
"p5"><br></p>
46 <p class=
"p6"><span class=
"s1">Server
</span>.default = s =
<span class=
"s1">Server
</span>.internal;
</p>
47 <p class=
"p6">s.boot;
</p>
48 <p class=
"p7"><br></p>
49 <p class=
"p8">// FreeVerb2 - demo synthdef
</p>
51 <p class=
"p9">SynthDef
<span class=
"s2">(
</span><span class=
"s3">\FreeVerb2x2
</span><span class=
"s2">, {
</span>|outbus, mix =
0.25, room =
0.15, damp =
0.5, amp =
1.0|
</p>
52 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">var
</span> signal;
</p>
53 <p class=
"p7"><br></p>
54 <p class=
"p6"><span class=
"Apple-tab-span"> </span>signal =
<span class=
"s1">In
</span>.ar(outbus,
2);
</p>
55 <p class=
"p7"><br></p>
56 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">ReplaceOut
</span>.ar(outbus,
</p>
57 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span><span class=
"s1">FreeVerb2
</span><span class=
"s2">.ar(
</span>// FreeVerb2 - true stereo UGen
</p>
58 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>signal[
0],
</span>// Left channel
</p>
59 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>signal[
1],
</span>// Right Channel
</p>
60 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>mix, room, damp, amp));
</span>// same params as FreeVerb
1 chn version
</p>
61 <p class=
"p7"><br></p>
62 <p class=
"p6">}).send(s);
</p>
64 <p class=
"p7"><br></p>
65 <p class=
"p8">//
2ch source
</p>
67 <p class=
"p6">a =
<span class=
"s1">SynthDef
</span>(
<span class=
"s3">\src2x2
</span>, {
</p>
68 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">Out
</span>.ar(
0,
</p>
69 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">Decay
</span>.ar(
<span class=
"s1">Impulse
</span>.ar(
1),
0.25,
<span class=
"s1">LFCub
</span>.ar(
1200,
0,
0.1)) !
2 +
</p>
70 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">Pan2
</span>.ar(
</p>
71 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">Decay
</span>.ar(
<span class=
"s1">Impulse
</span>.ar(
1, pi),
0.1,
<span class=
"s1">WhiteNoise
</span>.ar(
0.1)),
</p>
72 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">LFNoise1
</span>.kr(
0.5).range(-
1,
1)
</p>
73 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>)
</p>
74 <p class=
"p6"><span class=
"Apple-tab-span"> </span>)
</p>
75 <p class=
"p6">}).play
</p>
77 <p class=
"p7"><br></p>
78 <p class=
"p8">//kick it in
</p>
79 <p class=
"p10"><span class=
"s2">z =
</span><span class=
"s1">Synth
</span><span class=
"s2">(
</span>\FreeVerb2x2
<span class=
"s2">, [
</span>\outbus
<span class=
"s2">,
0], addAction:
</span>\addToTail
<span class=
"s2">)
</span></p>
80 <p class=
"p8">//experiment with some settings
</p>
81 <p class=
"p6">z.set(
<span class=
"s3">\room
</span>,
0.7)
</p>
82 <p class=
"p6">z.set(
<span class=
"s3">\mix
</span>,
0.33)
</p>
83 <p class=
"p6">z.set(
<span class=
"s3">\damp
</span>,
0.9)
</p>
84 <p class=
"p7"><br></p>
85 <p class=
"p8">// silence
</p>
86 <p class=
"p6">[a,z].do(
<span class=
"s1">_
</span>.free)
</p>
87 <p class=
"p7"><br></p>
88 <p class=
"p8">// crucial lib example
</p>
90 <p class=
"p9">Patch
<span class=
"s2">({
</span>|mix =
0.33, room =
0.25, damp =
0.7, amp =
0.1|
</p>
91 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">var
</span> signal;
</p>
92 <p class=
"p7"><br></p>
93 <p class=
"p6"><span class=
"Apple-tab-span"> </span>signal =
<span class=
"Apple-tab-span"> </span><span class=
"s1">Decay
</span>.ar(
<span class=
"s1">Impulse
</span>.ar(
1),
0.25,
<span class=
"s1">LFCub
</span>.ar(
1200)) !
2 +
</p>
94 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">Pan2
</span>.ar(
</p>
95 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">Decay
</span>.ar(
<span class=
"s1">Impulse
</span>.ar(
1, pi),
0.1,
<span class=
"s1">WhiteNoise
</span>.ar),
</p>
96 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"s1">LFNoise1
</span>.kr(
0.5).range(-
1,
1)
</p>
97 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>);
</p>
98 <p class=
"p7"><br></p>
99 <p class=
"p9"><span class=
"s2"><span class=
"Apple-tab-span"> </span></span>FreeVerb2
<span class=
"s2">.ar(
</span></p>
100 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>signal[
0],
</span>// Left channel
</p>
101 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>signal[
1],
</span>// Right Channel
</p>
102 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>mix, room, damp, amp)
</p>
103 <p class=
"p7"><br></p>
104 <p class=
"p6">}).gui
</p>
106 <p class=
"p7"><br></p>
107 <p class=
"p7"><br></p>