Files
Josh 0dfec24967 Allow names for voicegroups and use a macro for use with drumsets (#2149)
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.
2025-07-30 19:43:08 +01:00

67 lines
1.2 KiB
ArmAsm

.include "MPlayDef.s"
.equ se_m_dig_grp, voicegroup_rs_sfx_2
.equ se_m_dig_pri, 4
.equ se_m_dig_rev, reverb_set+50
.equ se_m_dig_mvl, 127
.equ se_m_dig_key, 0
.equ se_m_dig_tbs, 1
.equ se_m_dig_exg, 0
.equ se_m_dig_cmp, 1
.section .rodata
.global se_m_dig
.align 2
@********************** Track 1 **********************@
se_m_dig_1:
.byte KEYSH , se_m_dig_key+0
.byte TEMPO , 150*se_m_dig_tbs/2
.byte VOICE , 36
.byte BENDR , 12
.byte PAN , c_v+0
.byte VOL , 115*se_m_dig_mvl/mxv
.byte BEND , c_v+0
.byte N01 , Cn2 , v112
.byte W01
.byte VOICE , 26
.byte N02 , Cn3 , v127
.byte W01
.byte PAN , c_v+5
.byte BEND , c_v+4
.byte W01
.byte c_v+16
.byte N03
.byte W01
.byte PAN , c_v-8
.byte BEND , c_v+28
.byte W02
.byte c_v+45
.byte W01
.byte VOICE , 36
.byte PAN , c_v+12
.byte BEND , c_v+0
.byte N02 , Cn3 , v056
.byte W02
.byte W03
.byte PAN , c_v-12
.byte N02 , Cn3 , v036
.byte W03
.byte FINE
@******************************************************@
.align 2
se_m_dig:
.byte 1 @ NumTrks
.byte 0 @ NumBlks
.byte se_m_dig_pri @ Priority
.byte se_m_dig_rev @ Reverb.
.word se_m_dig_grp
.word se_m_dig_1
.end