Skip to content

Investigate sound effects shuffler #692

@CPColin

Description

@CPColin

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions