linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / NdefMixer.schelp
blobd45d103c345b25310fea7232098053b1b89df00d
1 class:: NdefMixer
2 summary:: mix control for an Ndef proxyspace
3 categories:: Libraries>JITLib>GUI
4 related:: Classes/ProxyMixer, Classes/JITGui, Classes/NdefGui
6 description::
8 NdefMixer is nearly identical to link::Classes/ProxyMixer::, except that it looks at the proxyspaces for each server that code::Ndef.all:: contains.
10 Examples::
12 code::
13 n = NdefMixer(s);
15 s.boot;
17 "bcdefghijk".do { |k| Ndef(k.asSymbol).ar };
19 "lmnopqrtuvw".do { |k| Ndef(k.asSymbol).kr };
21 "abcdefghijk".do { |k| Ndef(k.asSymbol).playN };
23 Ndef(\aaaaaa, { |freq=250, intv=19, timescale=1, curve=0, loopnode=0|
24         var env = EnvGen.kr(
25                 Env({ 1.0.rand2 }!11, {1.0.rand}!10, curve, releaseNode: 9, loopNode: loopnode),
26                 timeScale: timescale);
27         var pitch = (env * [1, 0.33, -1] * intv).midiratio * freq;
28         Splay.ar(Formant.ar(pitch, pitch.scramble * 2, pitch.scramble)) * 0.1;
29 });
32 n.switchSize(2);
33 n.switchSize(1);
34 n.switchSize(0);
35 n.editGui.object_(Ndef(\aaaaaa));
37 NdefMixer(Server.internal, 24);