mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 05:24:48 -04:00
Change the .asm song format so it's a bit easier to parse, by replacing PORT and GLOBALPORT macros with LOCALPORT and GLOBALPORT.
The LOCALPORT and GLOBALPORT just get numeric parameters (unit, port) and (voice, unit, port), respectively, which should be now quite intuitive as most of the time the port index is one of the parameters visible in the .asm file. Only a few units have extra ports beyond transformed variables. Overall, this should make the parsing of the .asm files a lot easier.
This commit is contained in:
@ -14,10 +14,10 @@ BEGIN_PATCH
|
||||
BEGIN_INSTRUMENT VOICES(1) ; Instrument0
|
||||
SU_LOADVAL MONO,VALUE(0)
|
||||
SU_LOADVAL MONO,VALUE(0)
|
||||
SU_SEND STEREO,AMOUNT(96),PORT(6,receive,left) + SEND_POP
|
||||
SU_SEND STEREO,AMOUNT(96),LOCALPORT(6,0) + SEND_POP
|
||||
SU_LOADVAL MONO,VALUE(64)
|
||||
SU_LOADVAL MONO,VALUE(128)
|
||||
SU_SEND STEREO,AMOUNT(128),PORT(6,receive,left) + SEND_POP
|
||||
SU_SEND STEREO,AMOUNT(128),LOCALPORT(6,0) + SEND_POP
|
||||
SU_RECEIVE STEREO; should receive 0.5 -0.5
|
||||
SU_OUT STEREO,GAIN(128)
|
||||
END_INSTRUMENT
|
||||
|
Reference in New Issue
Block a user