Don't understand internal bus

Hi everyone,

I'm trying to make a "reverb instrument" so I can send all my sounds from others instruments to it.
I guess I need an internal bus to do it.
I've look at te chn_a opcode but I don't realy understand how it works.
Someone can help me?

Thanks

Probably a simpler way

I suspect the 'chn' scheme is more elaborate than you need.
I've never used that, but I have a 'global reverb' in several of my orchestra files.

What I do is simply to have a global a-rate variable that is just added to by every instrument that wants to have reverb. Then the reverb instrument itself (which should be last in numeric order) passes the value to a reverb opcode and thence to the actual output, then zeroes the global variable for the next pass.

Something like:

gareverb = 0 ;initialized for first cycle

instr 1
;; generate some waveform into asound
gareverb = gareverb + asound
endin

instr 2
;;....
gareverb = gareverb + asound
endin

;...........

instr 10
ihold ;so it keeps running when started

aout reverb gareverb, 0.2 ;or whatever...
gareverb = 0
out aout
endin


Does that work for you?

buy viagra uk viagra online generic cialis pharmacy uk viagra uk staxyn zpak cialis online z pak buy zithromax generic viagra zpack cialis uk kamagra uk Canadian pharmacy viagra z pack cheap generic viagra ed drugs z-pak z-pack ed pills avanafil Canadian pharmacy