mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Break up pitchenvelope parameters into length and pitch change
This commit is contained in:
parent
f8b710769d
commit
b382473f7b
53 changed files with 115 additions and 110 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue