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 span
.s1
{color: #0000bf}
20 span
.s2
{color: #000000}
21 span
.s3
{color: #007300}
22 span
.s4
{color: #bf0000}
23 span
.Apple-tab-span
{white-space:pre
}
27 <p class=
"p1"><b>FreeVerb
<span class=
"Apple-tab-span"> </span>A reverb
</b></p>
28 <p class=
"p2"><br></p>
29 <p class=
"p3"><b>FreeVerb.ar(in, 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>in
</b> - input signal.
</p>
36 <p class=
"p3"><b>Mix
</b> - dry/wet balance. range
0.
.1</p>
37 <p class=
"p3"><b>room
</b> - room size. rage
0.
.1</p>
38 <p class=
"p3"><b>damp
</b> - Reverb HF damp. range
0.
.1</p>
39 <p class=
"p2"><br></p>
40 <p class=
"p3">See also [
<b>FreeVerb2
</b>]
</p>
41 <p class=
"p2"><br></p>
42 <p class=
"p2"><br></p>
43 <p class=
"p3"><b>Examples
</b></p>
44 <p class=
"p4"><br></p>
45 <p class=
"p6"><span class=
"s1">Server
</span>.default = s =
<span class=
"s1">Server
</span>.internal;
</p>
46 <p class=
"p6">s.boot;
</p>
47 <p class=
"p7"><br></p>
48 <p class=
"p8">// FreeVerb -
1x1 ugen
</p>
50 <p class=
"p9"><span class=
"s2">z =
</span>SynthDef
<span class=
"s2">(
</span><span class=
"s3">\src
</span><span class=
"s2">, {
</span>|mix =
0.25, room =
0.15, damp =
0.5|
</p>
51 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">Out
</span>.ar(
0,
</p>
52 <p class=
"p9"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>FreeVerb
<span class=
"s2">.ar(
</span></p>
53 <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),
0.25,
<span class=
"s1">LFCub
</span>.ar(
1200,
0,
0.1)),
<span class=
"s4">// mono src
</span></p>
54 <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,
</span>// mix
0-
1</p>
55 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>room,
</span>// room
0-
1</p>
56 <p class=
"p8"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>damp
</span>// damp
0-
1 duh
</p>
57 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>) !
2 //fan out...
</p>
58 <p class=
"p6"><span class=
"Apple-tab-span"> </span>);
</p>
59 <p class=
"p6">}).play
</p>
61 <p class=
"p6">z.set(
<span class=
"s3">\room
</span>,
0.7)
</p>
62 <p class=
"p6">z.set(
<span class=
"s3">\mix
</span>,
0.4)
</p>
63 <p class=
"p6">z.set(
<span class=
"s3">\damp
</span>,
0.2)
</p>
64 <p class=
"p7"><br></p>
65 <p class=
"p6">z.free
</p>
66 <p class=
"p7"><br></p>
67 <p class=
"p8">//it expands as any ugen does
</p>
69 <p class=
"p9"><span class=
"s2">z =
</span>SynthDef
<span class=
"s2">(
</span><span class=
"s3">\src
</span><span class=
"s2">, {
</span>|mix =
0.25, room =
0.15, damp =
0.5|
</p>
70 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"s1">Out
</span>.ar(
0,
</p>
71 <p class=
"p9"><span class=
"s2"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></span>FreeVerb
<span class=
"s2">.ar(
</span></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">Pan2
</span>.ar(
</p>
73 <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),
0.25,
<span class=
"s1">LFCub
</span>.ar(
1200,
0,
0.1)),
</p>
74 <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>.ar(
1).range(-
1,
1)
</p>
75 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>),
</p>
76 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>mix,
</p>
77 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>room,
</p>
78 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>damp
</p>
79 <p class=
"p6"><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>)
</p>
80 <p class=
"p6"><span class=
"Apple-tab-span"> </span>);
</p>
81 <p class=
"p6">}).play
</p>
83 <p class=
"p6">z.set(
<span class=
"s3">\room
</span>,
0.7)
</p>
84 <p class=
"p6">z.set(
<span class=
"s3">\mix
</span>,
0.4)
</p>
85 <p class=
"p6">z.set(
<span class=
"s3">\damp
</span>,
0.2)
</p>
86 <p class=
"p7"><br></p>
87 <p class=
"p6">z.free
</p>
88 <p class=
"p7"><br></p>