polymorphism: better names for .binaryValue and .booleanValue are .asInteger and...
[supercollider.git] / Help / Libraries / JITLib / GUI / NdefMixer.html
blob5b9f9c7479e26e0780d69701625e1fb42d89f12a
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="1038.29">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #2b30fa}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #2024c7; min-height: 12.0px}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #2024c7}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
16 span.s1 {font: 18.0px Helvetica}
17 span.s2 {color: #000000}
18 span.s3 {color: #737373}
19 span.s4 {color: #2024c7}
20 span.s5 {color: #008417}
21 span.Apple-tab-span {white-space:pre}
22 </style>
23 </head>
24 <body>
25 <p class="p1"><span class="s1"><b>NdefMixer <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>mix control for an Ndef proxyspace</b></p>
26 <p class="p2"><br></p>
27 <p class="p1"><b>NdefMixer is nearly identical to ProxyMixer, except that it looks at the<span class="Apple-converted-space"> </span></b></p>
28 <p class="p1"><b>proxyspaces for each server that Ndef.all contains.</b></p>
29 <p class="p2"><br></p>
30 <p class="p3"><span class="s2"><b>See also </b><a href="ProxyMixer.html"><b>ProxyMixer</b></a><b>, </b><a href="JITGui.html"><b>JITGui</b></a></span><b>, </b><a href="NdefGui.html"><b>NdefGui</b></a></p>
31 <p class="p4"><br></p>
32 <p class="p4"><br></p>
33 <p class="p5">n = NdefMixer<span class="s2">(s);</span></p>
34 <p class="p2"><br></p>
35 <p class="p6">s.boot;</p>
36 <p class="p2"><br></p>
37 <p class="p6"><span class="s3">"bcdefghijk"</span>.do { <span class="s4">|k|</span> Ndef(k.asSymbol).ar };</p>
38 <p class="p2"><br></p>
39 <p class="p6"><span class="s3">"lmnopqrtuvw"</span>.do { <span class="s4">|k|</span> Ndef(k.asSymbol).kr };</p>
40 <p class="p2"><br></p>
41 <p class="p6"><span class="s3">"abcdefghijk"</span>.do { <span class="s4">|k|</span> Ndef(k.asSymbol).playN };</p>
42 <p class="p6">(</p>
43 <p class="p5">Ndef<span class="s2">(</span><span class="s5">\aaaaaa</span><span class="s2">, { </span>|freq=250, intv=19, timescale=1, curve=0, loopnode=0|<span class="s2"><span class="Apple-converted-space"> </span></span></p>
44 <p class="p6"><span class="Apple-tab-span"> </span><span class="s4">var</span> env = <span class="s4">EnvGen</span>.kr(</p>
45 <p class="p6"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s4">Env</span>({ 1.0.rand2 }!11, {1.0.rand}!10, curve, releaseNode: 9, loopNode: loopnode),<span class="Apple-converted-space"> </span></p>
46 <p class="p6"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>timeScale: timescale);</p>
47 <p class="p6"><span class="Apple-tab-span"> </span><span class="s4">var</span> pitch = (env * [1, 0.33, -1] * intv).midiratio * freq;</p>
48 <p class="p6"><span class="Apple-tab-span"> </span><span class="s4">Splay</span>.ar(<span class="s4">Formant</span>.ar(pitch, pitch.scramble * 2, pitch.scramble)) * 0.1;</p>
49 <p class="p6">});</p>
50 <p class="p6">)</p>
51 <p class="p2"><br></p>
52 <p class="p6">n.switchSize(2);</p>
53 <p class="p6">n.switchSize(1);</p>
54 <p class="p6">n.switchSize(0);</p>
55 <p class="p6">n.editGui.object_(Ndef(\aaaaaa));</p>
56 <p class="p2"><br></p>
57 <p class="p6"><span class="s4">NdefMixer</span>(<span class="s4">Server</span>.internal, 24);</p>
58 <p class="p2"><br></p>
59 </body>
60 </html>