2 summary:: a listener on a bus
3 categories:: Libraries>JITLib>NodeProxy
7 BusPlug is mainly in use as a basic superclass of NodeProxy, but it can be applied for other things as well. Most methods are documented in the link::Classes/NodeProxy:: helpfile.
12 Create a new (neutral) instance on the given server
15 Create a new audio rate instance on the given server
18 Create a new audio rate instance on the given server
23 Free the bus, end the monitor
26 Return a link to my output, which is limited by strong::numChannels::. If uninitialized, creates a matching bus. Normally, strong::ar defaults to stereo, kr to mono::. This can be set in the classvars: link::#*defaultNumAudio::, link::#*defaultNumControl::
29 Plays from a bus index ( strong::out:: ) with a number of channels to another index with a number of channels, within a strong::group:: (ie a target group or server).
32 keep old links and add new one
35 volume at which to monitor
43 array of destination channels
46 array of amplitudes for each channel
49 array of source channels
52 returns the current monitor (see link::Classes/Monitor::)
57 // using as a control bus listener
60 z = Bus.control(s, 16);
63 m = { Mix(SinOsc.ar(a.kr(16), 0, 0.1)) }.play;
65 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
66 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
67 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
72 m = { SinOsc.ar(a.kr(2, MouseX.kr(0, 19)), 0, 0.1) }.play; // modulate channel offset
74 z.setn(Array.rand(16, 300, 1320).put(16.rand, rrand(500, 1000)));
79 // using as a audio monitor
81 p = BusPlug.audio(s,2);
82 d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play;
85 p.play; // monitor whatever plays in p (the execution order does not matter)
90 d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play;
95 // also p can play to another bus:
100 // listen to that bus for a test:
101 x = { InFeedback.ar(12,2) }.play;