Buses

From CSWiki
Revision as of 12:03, 9 September 2008 by Kassen (talk | contribs) (Internal mixing busses for ChucK)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Buses, a very simple yet useful trick. Just execute this code and from there on you can send signals to "bus.chan[n]" like you can with the dac, most importantly; you can take data signals from these from any shred in the VM. Just like with the dac and adc these will be system-wide. Useful for livecoding or modular constructs where some part of the signal chain with it's related code may need to be updated while the rest is kept running.

//increase the size of the array to get more channels
public class bus
   {
   static Gain @ chan[8];
   }
new Gain[8] @=> buses.chan;