mid2agb has been modified to allow more than just numbers when naming voicegroups and voicegroups have been renamed to match. A "voice_group" macro has been set up with a optional parameter for the starting note will shift the offset by the specified amount * 0xC which is the length of 1 voice in a voicegroup. All drumset voicegroups have a "starting_note" of 36.
24 lines
507 B
C++
24 lines
507 B
C++
.macro song label:req, music_player:req, unknown:req
|
|
.4byte \label
|
|
.2byte \music_player
|
|
.2byte \unknown
|
|
.endm
|
|
|
|
.macro music_player info_struct:req, track_struct:req, num_tracks:req, unknown:req
|
|
.4byte \info_struct
|
|
.4byte \track_struct
|
|
.byte \num_tracks
|
|
.space 1 @ Padding
|
|
.2byte \unknown
|
|
.endm
|
|
|
|
.macro voice_group label:req, starting_note
|
|
.align 2
|
|
.ifb \starting_note
|
|
.global voicegroup_\label
|
|
voicegroup_\label:
|
|
.else
|
|
.set voicegroup_\label, . - \starting_note * 0xC
|
|
.endif
|
|
.endm
|