Difference between revisions of "Buses"

From CSWiki
Jump to: navigation, search
(Internal mixing busses for ChucK)
 
m
Line 1: Line 1:
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.
+
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
 
  //increase the size of the array to get more channels

Revision as of 12:05, 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] @=> buses.chan;