Difference between revisions of "Buses"

From CSWiki
Jump to: navigation, search
m
m
 
Line 6: Line 6:
 
     static Gain @ chan[8];
 
     static Gain @ chan[8];
 
     }
 
     }
  new Gain[8] @=> buses.chan;
+
  new Gain[8] @=> bus.chan;

Latest revision as of 12:15, 9 September 2008

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. Part of a initiative to create and share library like code; Chuck/Lib

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