mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
Change LOCALPORT and GLOBALPORT macros so that SU_SEND commands are easier to parse.
The new format is to give either 5 or 6 parameters to SU_SEND, corresponding to local and global send, respectively. For example, a global send: SU_SEND MONO,AMOUNT(128),VOICE(2),UNIT(0),PORT(1),FLAGS(SEND_POP) The SU_SEND macro does the address packing into word.
This commit is contained in:
@ -13,14 +13,14 @@ END_TRACKS
|
||||
BEGIN_PATCH
|
||||
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
|
||||
SU_LOADVAL MONO,VALUE(96)
|
||||
SU_SEND MONO,AMOUNT(96),GLOBALPORT(1,3,0) + SEND_POP
|
||||
SU_SEND MONO,AMOUNT(96),VOICE(1),UNIT(3),PORT(0),FLAGS(SEND_POP)
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
END_INSTRUMENT
|
||||
BEGIN_INSTRUMENT VOICES(1) ; Instrument1
|
||||
SU_LOADVAL MONO,VALUE(32)
|
||||
SU_SEND MONO,AMOUNT(96),GLOBALPORT(0,2,0) + SEND_POP
|
||||
SU_SEND MONO,AMOUNT(96),VOICE(0),UNIT(2),PORT(0),FLAGS(SEND_POP)
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
|
Reference in New Issue
Block a user