2 summary:: Read from a shared control bus.
3 related:: Classes/SharedOut
4 categories:: UGens>InOut
10 SharedIn has been deprecated. Synchronous access to busses on local servers is possible via
11 link::Classes/Bus#-getSynchronous:: and link::Classes/Bus#-setSynchronous::
14 Reads from a control bus shared between the internal server and the SC
15 client. Control rate only. Writing to a shared control bus from the
16 client is synchronous. When not using the internal server use node
17 arguments or the set method of Bus (or /c_set in messaging style).
26 The index of the shared control bus to read from.
31 the number of channels (i.e. adjacent buses) to read in. The
32 default is 1. You cannot modulate this number by assigning it to
33 an argument in a SynthDef.
41 // only works with the internal server
47 SynthDef("help-SharedIn1", {
48 Out.ar(0, SinOsc.ar(Lag.kr(SharedIn.kr(0, 1), 0.01), 0, 0.2));
50 SynthDef("help-SharedIn2", {
51 Out.ar(1, SinOsc.ar(Lag.kr(SharedIn.kr(0, 1), 0.01, 1.5), 0, 0.2));
56 s.setSharedControl(0, 300); // an initial value
57 s.sendMsg(\s_new, "help-SharedIn1", x = s.nextNodeID, 0, 1);
58 s.sendMsg(\s_new, "help-SharedIn2", y = s.nextNodeID, 0, 1);
62 s.setSharedControl(0, 300 * (10.rand + 1));
65 s.sendMsg(\n_free, x);
66 s.sendMsg(\n_free, y);