diff options
author | dannye <33dannye@gmail.com> | 2018-03-16 17:56:37 -0500 |
---|---|---|
committer | dannye <33dannye@gmail.com> | 2018-03-16 18:07:41 -0500 |
commit | b382473f7b6827020f5544c8dcc730be8fc83f6e (patch) | |
tree | f0a83aec2a4c0ca399602da0a0185d8c175221c1 /macros/audio_macros.asm | |
parent | f8b710769dba1e128450c3d11eb2a7a05f745877 (diff) |
Break up pitchenvelope parameters into length and pitch change
Diffstat (limited to 'macros/audio_macros.asm')
-rwxr-xr-x | macros/audio_macros.asm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/macros/audio_macros.asm b/macros/audio_macros.asm index c81e2181..8195a04d 100755 --- a/macros/audio_macros.asm +++ b/macros/audio_macros.asm @@ -30,19 +30,24 @@ audio: MACRO ENDC ENDM -pitchenvelope: MACRO ; this was originally unknownsfx0x10 +;format: length [0, 7], pitch change [-7, 7] +pitchenvelope: MACRO db $10 - db \1 + IF \2 > 0 + db (\1 << 4) | \2 + ELSE + db (\1 << 4) | (%1000 | (\2 * -1)) + ENDC ENDM -squarenote: MACRO ; this was originally unknownsfx0x20 +squarenote: MACRO db $20 | \1 db \2 db \3 db \4 ENDM -noisenote: MACRO ; this was originally unknownnoise0x20 +noisenote: MACRO db $20 | \1 db \2 db \3 |