mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-28 05:24:44 -05:00
refactor(asm&go4k): Remove special treatment from stereo parameters; it's now just one parameter in the Unit map.
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
%macro SU_ADDP 1
|
||||
USE_ADDP
|
||||
%xdefine CMDS CMDS ADDP_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_ADDP
|
||||
%endif
|
||||
%endmacro
|
||||
@ -36,7 +36,7 @@
|
||||
%macro SU_ADD 1
|
||||
USE_ADD
|
||||
%xdefine CMDS CMDS ADD_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_ADD
|
||||
%endif
|
||||
%endmacro
|
||||
@ -57,7 +57,7 @@
|
||||
%macro SU_POP 1
|
||||
USE_POP
|
||||
%xdefine CMDS CMDS POP_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_POP
|
||||
%endif
|
||||
%endmacro
|
||||
@ -78,7 +78,7 @@
|
||||
%macro SU_LOADNOTE 1
|
||||
USE_LOADNOTE
|
||||
%xdefine CMDS CMDS LOADNOTE_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_LOADNOTE
|
||||
%endif
|
||||
%endmacro
|
||||
@ -99,7 +99,7 @@
|
||||
%macro SU_MUL 1
|
||||
USE_MUL
|
||||
%xdefine CMDS CMDS MUL_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_MUL
|
||||
%endif
|
||||
%endmacro
|
||||
@ -120,7 +120,7 @@
|
||||
%macro SU_MULP 1
|
||||
USE_MULP
|
||||
%xdefine CMDS CMDS MULP_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_MULP
|
||||
%endif
|
||||
%endmacro
|
||||
@ -141,7 +141,7 @@
|
||||
%macro SU_PUSH 1
|
||||
USE_PUSH
|
||||
%xdefine CMDS CMDS PUSH_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_PUSH
|
||||
%endif
|
||||
%endmacro
|
||||
@ -162,7 +162,7 @@
|
||||
%macro SU_XCH 1
|
||||
USE_XCH
|
||||
%xdefine CMDS CMDS XCH_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_XCH
|
||||
%endif
|
||||
%endmacro
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
db (%4*LOWPASSFLAG)+(%5*BANDPASSFLAG)+(%6*HIGHPASSFLAG)+(%7*NEGBANDPASSFLAG)+(%8*NEGHIGHPASSFLAG)
|
||||
USE_FILTER
|
||||
%xdefine CMDS CMDS FILTER_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_FILTER
|
||||
%endif
|
||||
%if %4 > 0
|
||||
@ -82,7 +82,7 @@ endstruc
|
||||
db %2
|
||||
USE_PAN
|
||||
%xdefine CMDS CMDS PAN_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_PAN
|
||||
%endif
|
||||
%endmacro
|
||||
@ -111,7 +111,7 @@ endstruc
|
||||
db %2
|
||||
USE_DISTORT
|
||||
%xdefine CMDS CMDS DISTORT_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_DISTORT
|
||||
%endif
|
||||
%endmacro
|
||||
@ -140,7 +140,7 @@ endstruc
|
||||
db %2
|
||||
USE_HOLD
|
||||
%xdefine CMDS CMDS HOLD_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_HOLD
|
||||
%endif
|
||||
%endmacro
|
||||
@ -174,7 +174,7 @@ endstruc
|
||||
db %2
|
||||
USE_CRUSH
|
||||
%xdefine CMDS CMDS CRUSH_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_CRUSH
|
||||
%endif
|
||||
%endmacro
|
||||
@ -203,7 +203,7 @@ endstruc
|
||||
db %2
|
||||
USE_GAIN
|
||||
%xdefine CMDS CMDS GAIN_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_GAIN
|
||||
%endif
|
||||
%endmacro
|
||||
@ -232,7 +232,7 @@ endstruc
|
||||
db %2
|
||||
USE_INVGAIN
|
||||
%xdefine CMDS CMDS INVGAIN_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_INVGAIN
|
||||
%endif
|
||||
%endmacro
|
||||
@ -260,7 +260,7 @@ endstruc
|
||||
%macro SU_CLIP 1
|
||||
USE_CLIP
|
||||
%xdefine CMDS CMDS CLIP_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_CLIP
|
||||
%endif
|
||||
%endmacro
|
||||
@ -291,7 +291,7 @@ endstruc
|
||||
USE_DELAY
|
||||
%xdefine CMDS CMDS DELAY_ID + %1,
|
||||
%assign NUM_DELAY_LINES NUM_DELAY_LINES + %7 * (1+%1)
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_DELAY
|
||||
%endif
|
||||
%if %8 > 0
|
||||
@ -364,7 +364,7 @@ endstruc
|
||||
db %6
|
||||
USE_COMPRES
|
||||
%xdefine CMDS CMDS COMPRES_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_COMPRES
|
||||
%endif
|
||||
%endmacro
|
||||
|
||||
@ -11,9 +11,9 @@
|
||||
%endif
|
||||
%endmacro
|
||||
|
||||
%macro SU_SPEED 1
|
||||
%macro SU_SPEED 0
|
||||
USE_SPEED
|
||||
%xdefine CMDS CMDS SPEED_ID+%1, ; for future, although currently there is no stereo variant implemented
|
||||
%xdefine CMDS CMDS SPEED_ID,
|
||||
%endmacro
|
||||
|
||||
struc su_speed_wrk
|
||||
|
||||
@ -83,8 +83,7 @@
|
||||
%define OPCODES MANGLE_FUNC(su_op_advance,0),
|
||||
%define NUMPARAMS 0,
|
||||
%define SU_ADVANCE_ID 0
|
||||
%define MONO 0
|
||||
%define STEREO 1
|
||||
%define STEREO(val) val
|
||||
|
||||
section .text ; yasm throws section redeclaration warnings if strucs are defined without a plain .text section
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
db %2
|
||||
USE_OUT
|
||||
%xdefine CMDS CMDS OUT_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_OUT
|
||||
%endif
|
||||
%endmacro
|
||||
@ -44,7 +44,7 @@ endstruc
|
||||
db %3
|
||||
USE_OUTAUX
|
||||
%xdefine CMDS CMDS OUTAUX_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_OUTAUX
|
||||
%endif
|
||||
%endmacro
|
||||
@ -75,7 +75,7 @@ endstruc
|
||||
db %3
|
||||
USE_AUX
|
||||
%xdefine CMDS CMDS AUX_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_AUX
|
||||
%endif
|
||||
%endmacro
|
||||
@ -109,7 +109,7 @@ endstruc
|
||||
%endif
|
||||
USE_SEND
|
||||
%xdefine CMDS CMDS SEND_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_SEND
|
||||
%endif
|
||||
%endmacro
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
db %6
|
||||
USE_ENVELOPE
|
||||
%xdefine CMDS CMDS ENVELOPE_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_ENVELOPE
|
||||
%endif
|
||||
%endmacro
|
||||
@ -80,7 +80,7 @@ endstruc
|
||||
db %8 + (LFOFLAG * %9) + %10 ; TYPE + LFO + UNISON
|
||||
USE_OSCILLAT
|
||||
%xdefine CMDS CMDS OSCILLAT_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_OSCILLAT
|
||||
%endif
|
||||
%if (%8) & SINE == SINE
|
||||
@ -173,7 +173,7 @@ endstruc
|
||||
db %3
|
||||
USE_NOISE
|
||||
%xdefine CMDS CMDS NOISE_ID + %1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_NOISE
|
||||
%endif
|
||||
%endmacro
|
||||
@ -200,7 +200,7 @@ endstruc
|
||||
db %2
|
||||
USE_LOAD_VAL
|
||||
%xdefine CMDS CMDS LOADVAL_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_LOADVAL
|
||||
%endif
|
||||
%endmacro
|
||||
@ -227,7 +227,7 @@ endstruc
|
||||
%macro SU_RECEIVE 1
|
||||
USE_RECEIVE
|
||||
%xdefine CMDS CMDS RECEIVE_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_RECEIVE
|
||||
%endif
|
||||
%endmacro
|
||||
@ -254,7 +254,7 @@ endstruc
|
||||
db %2
|
||||
USE_IN
|
||||
%xdefine CMDS CMDS IN_ID+%1,
|
||||
%if %1 == STEREO
|
||||
%if %1 == 1
|
||||
%define INCLUDE_STEREO_IN
|
||||
%endif
|
||||
%endmacro
|
||||
|
||||
Reference in New Issue
Block a user