diff options
author | Richard Knight <q@1bpm.net> | 2021-10-29 22:32:21 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2021-10-29 22:32:21 +0100 |
commit | c4b96cdd87738e9f0cba695904d2d484b4335e7f (patch) | |
tree | 111cf121905aa3d7a317bd96b5e7db0f2a8aac6e /BUG3/bussing.udo | |
download | csd-unfixedbugs1-c4b96cdd87738e9f0cba695904d2d484b4335e7f.tar.gz csd-unfixedbugs1-c4b96cdd87738e9f0cba695904d2d484b4335e7f.tar.bz2 csd-unfixedbugs1-c4b96cdd87738e9f0cba695904d2d484b4335e7f.zip |
initial
Diffstat (limited to 'BUG3/bussing.udo')
-rw-r--r-- | BUG3/bussing.udo | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/BUG3/bussing.udo b/BUG3/bussing.udo new file mode 100644 index 0000000..78755ce --- /dev/null +++ b/BUG3/bussing.udo @@ -0,0 +1,62 @@ +#ifndef UDO_BUSSING +#define UDO_BUSSING ## + + +/* + Get the stereo L and R names for a singular bus name + + SnameL, SnameR bus_name Sbus + + SnameL left bus identifier + SnameR right bus identifier + + Sbus bus name +*/ +opcode bus_name, SS, S + Sbus xin + xout sprintf("%sL", Sbus), sprintf("%sR", Sbus) +endop + + +/* + Mix to a stereo bus + + bus_mix Sbus, aL, aR + + Sbus bus name + aL left channel + aR right channel +*/ +opcode bus_mix, 0, Saa + Sbus, aL, aR xin + SbusL, SbusR bus_name Sbus + chnmix aL, SbusL + chnmix aR, SbusR +endop + + + +/* + Read from a stereo bus, and then clear the bus + + aL, aR bus_read Sbus + + aL left channel + aR right channel + + Sbus bus name +*/ +opcode bus_read, aa, S + Sbus xin + SbusL, SbusR bus_name Sbus + aL chnget SbusL + aR chnget SbusR + chnclear SbusL + chnclear SbusR + xout aL, aR +endop + + + + +#end |