summaryrefslogtreecommitdiff
path: root/pokemontools/redmusicdisasm.py
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-05-05 19:27:23 -0500
committerdannye <33dannye@gmail.com>2020-05-05 19:27:59 -0500
commitc1a67e680d0a48638a026b2edc6fabde1acdff44 (patch)
tree17903d1b33cf1218e038a078d43f56074b222719 /pokemontools/redmusicdisasm.py
parenta28e6f460dffbc78cbf59d4866c2c825ed37d3b0 (diff)
Add new crystal audio dump script
and update red audio scripts
Diffstat (limited to 'pokemontools/redmusicdisasm.py')
-rwxr-xr-xpokemontools/redmusicdisasm.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemontools/redmusicdisasm.py b/pokemontools/redmusicdisasm.py
index d21e22a..6d4d3c3 100755
--- a/pokemontools/redmusicdisasm.py
+++ b/pokemontools/redmusicdisasm.py
@@ -83,10 +83,10 @@ alternate_start_songs = [
# music command names and parameter lists
music_commands = {
0x00: { "name": "note", "params": [ "note", "lower_nibble_off_by_one" ] },
- 0xb0: { "name": "dnote", "params": [ "byte", "lower_nibble_off_by_one" ] },
+ 0xb0: { "name": "drum_note", "params": [ "byte", "lower_nibble_off_by_one" ] },
0xc0: { "name": "rest", "params": [ "lower_nibble_off_by_one" ] },
0xd0: { "name": "note_type", "params": [ "lower_nibble", "nibbles_unsigned_signed" ] },
- 0xd1: { "name": "dspeed", "params": [ "lower_nibble" ] },
+ 0xd1: { "name": "drum_speed", "params": [ "lower_nibble" ] },
0xe0: { "name": "octave", "params": [ "octave" ] },
0xe8: { "name": "toggle_perfect_pitch", "params": [] },
0xea: { "name": "vibrato", "params": [ "byte", "nibbles" ] },
@@ -144,10 +144,10 @@ def get_command_length(command_id):
return length
def get_base_command_id(command_id, channel):
- # dnote
+ # drum_note
if command_id < 0xc0 and channel == 4:
return 0xb0
- # dspeed
+ # drum_speed
elif command_id >= 0xd0 and command_id < 0xe0 and channel == 4:
return 0xd1
# note