mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Break up sfxnote parameters into duty, volume, volume change and pitch
This commit is contained in:
parent
b382473f7b
commit
4398dde1e4
311 changed files with 2598 additions and 2586 deletions
|
|
@ -40,17 +40,26 @@ pitchenvelope: MACRO
|
|||
ENDC
|
||||
ENDM
|
||||
|
||||
;format: duty, volume, volume change, pitch
|
||||
squarenote: MACRO
|
||||
db $20 | \1
|
||||
db \2
|
||||
db \3
|
||||
db \4
|
||||
IF \3 < 0
|
||||
db (\2 << 4) | (%1000 | (\3 * -1))
|
||||
ELSE
|
||||
db (\2 << 4) | \3
|
||||
ENDC
|
||||
dw \4
|
||||
ENDM
|
||||
|
||||
;format: duty, volume, volume change, pitch
|
||||
noisenote: MACRO
|
||||
db $20 | \1
|
||||
db \2
|
||||
db \3
|
||||
IF \3 < 0
|
||||
db (\2 << 4) | (%1000 | (\3 * -1))
|
||||
ELSE
|
||||
db (\2 << 4) | \3
|
||||
ENDC
|
||||
db \4
|
||||
ENDM
|
||||
|
||||
;format: pitch length (in 16ths)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue