Add yellow sfx to red audio tools

This commit is contained in:
dannye 2020-05-25 18:56:18 -05:00
parent c1a67e680d
commit 5e0715f257
2 changed files with 150 additions and 0 deletions

View File

@ -328,10 +328,84 @@ sfx_names_3 = [
"Shooting_Star",
]
sfx_names_4 = [
"Noise_Instrument01_4",
"Noise_Instrument02_4",
"Noise_Instrument03_4",
"Noise_Instrument04_4",
"Noise_Instrument05_4",
"Noise_Instrument06_4",
"Noise_Instrument07_4",
"Noise_Instrument08_4",
"Noise_Instrument09_4",
"Noise_Instrument10_4",
"Noise_Instrument11_4",
"Noise_Instrument12_4",
"Noise_Instrument13_4",
"Noise_Instrument14_4",
"Noise_Instrument15_4",
"Noise_Instrument16_4",
"Noise_Instrument17_4",
"Noise_Instrument18_4",
"Noise_Instrument19_4",
"Cry00_4",
"Cry01_4",
"Cry02_4",
"Cry03_4",
"Cry04_4",
"Cry05_4",
"Cry06_4",
"Cry07_4",
"Cry08_4",
"Cry09_4",
"Cry0A_4",
"Cry0B_4",
"Cry0C_4",
"Cry0D_4",
"Cry0E_4",
"Cry0F_4",
"Cry10_4",
"Cry11_4",
"Cry12_4",
"Cry13_4",
"Cry14_4",
"Cry15_4",
"Cry16_4",
"Cry17_4",
"Cry18_4",
"Cry19_4",
"Cry1A_4",
"Cry1B_4",
"Cry1C_4",
"Cry1D_4",
"Cry1E_4",
"Cry1F_4",
"Cry20_4",
"Cry21_4",
"Cry22_4",
"Cry23_4",
"Cry24_4",
"Cry25_4",
"Get_Item1_4",
"Get_Item2_4",
"Tink_4",
"Heal_HP_4",
"Heal_Ailment_4",
"Start_Menu_4",
"Press_AB_4",
"Surfing_Jump",
"Surfing_Flip",
"Surfing_Crash",
"Unknown_802cc",
"Surfing_Land",
"Get_Item2_4_2",
]
sfx_groups = {
0x02: sfx_names_1,
0x08: sfx_names_2,
0x1f: sfx_names_3,
# 0x20: sfx_names_4, # yellow only
}
# music command names and parameter lists
@ -449,6 +523,7 @@ def dump_sfx_channel(start_address, sfx_name, sfx, channel, final_channel, chann
output = "SFX_{}_Ch{}:\n".format(sfx_name, channel_number)
while 1:
if address == 0x2062a or address == 0x2063d or address == 0x20930:
# if address == 0x205da or address == 0x205ed or address == 0x208e0: # yellow only
output += "\nSFX_{}_branch_{:02x}:\n".format(sfx_name, address)
command_id = rom[address]
command = music_commands[get_base_command_id(command_id, channel_number, execute_music)]

View File

@ -328,16 +328,91 @@ sfx_names_3 = [
"Shooting_Star",
]
sfx_names_4 = [
"Noise_Instrument01_4",
"Noise_Instrument02_4",
"Noise_Instrument03_4",
"Noise_Instrument04_4",
"Noise_Instrument05_4",
"Noise_Instrument06_4",
"Noise_Instrument07_4",
"Noise_Instrument08_4",
"Noise_Instrument09_4",
"Noise_Instrument10_4",
"Noise_Instrument11_4",
"Noise_Instrument12_4",
"Noise_Instrument13_4",
"Noise_Instrument14_4",
"Noise_Instrument15_4",
"Noise_Instrument16_4",
"Noise_Instrument17_4",
"Noise_Instrument18_4",
"Noise_Instrument19_4",
"Cry00_4",
"Cry01_4",
"Cry02_4",
"Cry03_4",
"Cry04_4",
"Cry05_4",
"Cry06_4",
"Cry07_4",
"Cry08_4",
"Cry09_4",
"Cry0A_4",
"Cry0B_4",
"Cry0C_4",
"Cry0D_4",
"Cry0E_4",
"Cry0F_4",
"Cry10_4",
"Cry11_4",
"Cry12_4",
"Cry13_4",
"Cry14_4",
"Cry15_4",
"Cry16_4",
"Cry17_4",
"Cry18_4",
"Cry19_4",
"Cry1A_4",
"Cry1B_4",
"Cry1C_4",
"Cry1D_4",
"Cry1E_4",
"Cry1F_4",
"Cry20_4",
"Cry21_4",
"Cry22_4",
"Cry23_4",
"Cry24_4",
"Cry25_4",
"Get_Item1_4",
"Get_Item2_4",
"Tink_4",
"Heal_HP_4",
"Heal_Ailment_4",
"Start_Menu_4",
"Press_AB_4",
"Surfing_Jump",
"Surfing_Flip",
"Surfing_Crash",
"Unknown_802cc",
"Surfing_Land",
"Get_Item2_4_2",
]
sfx_banks = [
0x02,
0x08,
0x1f,
# 0x20, # yellow only
]
sfx_groups = {
0x02: sfx_names_1,
0x08: sfx_names_2,
0x1f: sfx_names_3,
# 0x20: sfx_names_4, # yellow only
}
def dump_all_sfx_headers_in_bank(bank, sfx_names, path, i):