diff options
author | Richard Knight <q@1bpm.net> | 2021-10-31 04:35:16 +0000 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2021-10-31 04:35:16 +0000 |
commit | 4a2d04c8cd3b4640084b41ca65a54a6615625ce9 (patch) | |
tree | de4439781c46e99f52944e0eb586abc6ae30e0ef /BUG4/bussing.udo | |
parent | ff5405cc2fd290d3d6715fb58e1ee5a6569b85e0 (diff) | |
download | csd-unfixedbugs1-4a2d04c8cd3b4640084b41ca65a54a6615625ce9.tar.gz csd-unfixedbugs1-4a2d04c8cd3b4640084b41ca65a54a6615625ce9.tar.bz2 csd-unfixedbugs1-4a2d04c8cd3b4640084b41ca65a54a6615625ce9.zip |
beta completion of BUG3
Diffstat (limited to 'BUG4/bussing.udo')
-rw-r--r-- | BUG4/bussing.udo | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/BUG4/bussing.udo b/BUG4/bussing.udo new file mode 100644 index 0000000..78755ce --- /dev/null +++ b/BUG4/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 |