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).
35 an link::Classes/Integer::
38 target link::Classes/Group:: or link::Classes/Server::
41 keep old links and add new one
44 volume at which to monitor
54 array of destination channels
57 array of amplitudes for each channel
60 array of source channels
68 returns the current monitor (see link::Classes/Monitor::)
73 // using as a control bus listener
76 z = Bus.control(s, 16);
79 m = { Mix(SinOsc.ar(a.kr(16), 0, 0.1)) }.play;
81 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
82 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
83 z.setn(Array.rand(16, 300, 320).put(16.rand, rrand(500, 1000)));
88 m = { SinOsc.ar(a.kr(2, MouseX.kr(0, 19)), 0, 0.1) }.play; // modulate channel offset
90 z.setn(Array.rand(16, 300, 1320).put(16.rand, rrand(500, 1000)));
95 // using as a audio monitor
97 p = BusPlug.audio(s,2);
98 d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play;
101 p.play; // monitor whatever plays in p (the execution order does not matter)
106 d = { Out.ar(p.index, PinkNoise.ar([0.1, 0.1])) }.play;
111 // also p can play to another bus:
116 // listen to that bus for a test:
117 x = { InFeedback.ar(12,2) }.play;