-
Notifications
You must be signed in to change notification settings - Fork 11
Description
This table in a sound effect library handles how many voices each sound effect has and whether they have priority:
https://github.com/PJBoy/SM-SPC/blob/master/vanilla/sound%20library%201.asm#L45
This table shows which instructions go with which sound effects:
https://github.com/PJBoy/SM-SPC/blob/master/vanilla/sound%20library%201.asm#L428
Shuffling the words in both tables to the same new order (that is, element 0 in each table is now element 20 in both tables, etc.) should shuffle the sound effects without blowing everything up. Doing this for all three sound effect libraries should be chaotic and maybe amusing??
Note that some sound effects, like the Etecoons jingle, depend on instruments being loaded by the current music tracks. We can either exclude the sound effects that can't play everywhere or just go "lol" and embrace the chaos. (Or even have two modes?)
This file lists all the sound effects and indicates which ones use instruments that depend on the current music track:
https://patrickjohnston.org/ASM/Lists/Super%20Metroid/Sound%20effects.asm
(Incidentally, while reading the above, I noticed the sound effect that doesn't play due to a typo. We could fix the STA at $A9:95B1 to be the JSL it's supposed to be.)