	.include "MPlayDef.s"

	.equ	m_BGM_Result_grp, voicegroup003
	.equ	m_BGM_Result_pri, 0
	.equ	m_BGM_Result_rev, 0
	.equ	m_BGM_Result_mvl, 30
	.equ	m_BGM_Result_key, 0
	.equ	m_BGM_Result_tbs, 1
	.equ	m_BGM_Result_exg, 0
	.equ	m_BGM_Result_cmp, 1

	.section .rodata
	.global	m_BGM_Result
	.align	2

@**************** Track 1 (Midi-Chn.1) ****************@

m_BGM_Result_1:
	.byte	KEYSH , m_BGM_Result_key+0
m_BGM_Result_1_B1:
@ 000   ----------------------------------------
	.byte	TEMPO , 150*m_BGM_Result_tbs/2
	.byte		VOICE , 126
	.byte		VOL   , 100*m_BGM_Result_mvl/mxv
	.byte		PAN   , c_v-10
	.byte		BENDR , 24
	.byte		LFOS  , 100
	.byte		LFODL , 0
	.byte		MOD   , 80
	.byte		MODT  , 0
	.byte		BEND  , c_v-63
	.byte	W01
	.byte		TIE   , An1 , v112
	.byte	W02
	.byte		BEND  , c_v-32
	.byte	W12
	.byte		        c_v-21
	.byte	W12
	.byte		        c_v-10
	.byte	W12
	.byte		        c_v+1
	.byte	W12
	.byte		        c_v+12
	.byte	W12
	.byte		        c_v+23
	.byte	W12
	.byte		        c_v+17
	.byte	W12
	.byte		        c_v+3
	.byte	W09
@ 001   ----------------------------------------
	.byte	W03
	.byte		        c_v-11
	.byte	W12
	.byte		        c_v-25
	.byte	W12
	.byte		        c_v-39
	.byte	W12
	.byte		        c_v-53
	.byte	W08
	.byte		        c_v-63
	.byte	W11
	.byte		VOL   , 50*m_BGM_Result_mvl/mxv
	.byte	W23
	.byte		EOT   
	.byte	W15
@ 002   ----------------------------------------
	.byte		VOL   , 100*m_BGM_Result_mvl/mxv
	.byte	W12
	.byte		BEND  , c_v-56
	.byte	W02
	.byte		TIE   
	.byte	W01
	.byte		BEND  , c_v-51
	.byte	W12
	.byte		        c_v-33
	.byte	W12
	.byte		        c_v-16
	.byte	W12
	.byte		        c_v+4
	.byte	W12
	.byte		        c_v+22
	.byte	W12
	.byte		        c_v+40
	.byte	W12
	.byte		        c_v+42
	.byte	W09
@ 003   ----------------------------------------
	.byte	W03
	.byte		        c_v+30
	.byte	W12
	.byte		        c_v+16
	.byte	W12
	.byte		        c_v+0
	.byte	W12
	.byte		        c_v-12
	.byte	W12
	.byte		        c_v-25
	.byte	W14
	.byte		        c_v-41
	.byte	W05
	.byte		VOL   , 50*m_BGM_Result_mvl/mxv
	.byte	W24
	.byte	W02
@ 004   ----------------------------------------
	.byte	W19
	.byte		EOT   
	.byte	W05
	.byte	GOTO
	 .word	m_BGM_Result_1_B1
m_BGM_Result_1_B2:
	.byte	FINE

@**************** Track 2 (Midi-Chn.2) ****************@

m_BGM_Result_2:
	.byte	KEYSH , m_BGM_Result_key+0
m_BGM_Result_2_B1:
@ 000   ----------------------------------------
	.byte		VOICE , 126
	.byte		VOL   , 40*m_BGM_Result_mvl/mxv
	.byte		PAN   , c_v+10
	.byte		BENDR , 36
	.byte		BEND  , c_v-22
	.byte		TIE   , Cn2 , v080
	.byte		TIE   , An4 , v100
	.byte	W07
	.byte		BEND  , c_v-18
	.byte	W06
	.byte		        c_v-22
	.byte	W05
	.byte		VOL   , 51*m_BGM_Result_mvl/mxv
	.byte	W01
	.byte		BEND  , c_v-18
	.byte	W06
	.byte		        c_v-21
	.byte	W06
	.byte		        c_v-12
	.byte	W05
	.byte		VOL   , 62*m_BGM_Result_mvl/mxv
	.byte	W01
	.byte		BEND  , c_v-15
	.byte	W06
	.byte		        c_v-20
	.byte	W06
	.byte		        c_v-17
	.byte	W05
	.byte		VOL   , 73*m_BGM_Result_mvl/mxv
	.byte	W01
	.byte		BEND  , c_v-24
	.byte	W06
	.byte		        c_v-18
	.byte	W06
	.byte		        c_v-20
	.byte	W05
	.byte		VOL   , 85*m_BGM_Result_mvl/mxv
	.byte	W01
	.byte		BEND  , c_v-29
	.byte	W06
	.byte		        c_v-25
	.byte	W06
	.byte		        c_v-25
	.byte	W05
	.byte		VOL   , 96*m_BGM_Result_mvl/mxv
	.byte	W01
	.byte		BEND  , c_v-32
	.byte	W05
@ 001   ----------------------------------------
	.byte	W01
	.byte		        c_v-26
	.byte	W06
	.byte		        c_v-37
	.byte	W06
	.byte		        c_v-36
	.byte	W06
	.byte		        c_v-37
	.byte	W06
	.byte		        c_v-30
	.byte	W06
	.byte		        c_v-36
	.byte	W06
	.byte		        c_v-44
	.byte	W06
	.byte		        c_v-40
	.byte	W06
	.byte		        c_v-44
	.byte	W06
	.byte		        c_v-40
	.byte	W06
	.byte		        c_v-42
	.byte	W06
	.byte		        c_v-35
	.byte	W06
	.byte		        c_v-44
	.byte	W06
	.byte		        c_v-53
	.byte	W06
	.byte		        c_v-51
	.byte	W04
	.byte		        c_v-47
	.byte	W06
	.byte		        c_v-42
	.byte	W01
@ 002   ----------------------------------------
	.byte	W05
	.byte		        c_v-45
	.byte	W06
	.byte		        c_v-45
	.byte	W06
	.byte		        c_v-44
	.byte	W06
	.byte		        c_v-34
	.byte	W06
	.byte		        c_v-34
	.byte	W06
	.byte		        c_v-43
	.byte	W06
	.byte		        c_v-43
	.byte	W06
	.byte		        c_v-39
	.byte	W06
	.byte		        c_v-28
	.byte	W06
	.byte		        c_v-29
	.byte	W06
	.byte		        c_v-37
	.byte	W06
	.byte		        c_v-37
	.byte	W06
	.byte		        c_v-32
	.byte	W06
	.byte		        c_v-22
	.byte	W06
	.byte		        c_v-30
	.byte	W06
	.byte		        c_v-27
	.byte	W01
@ 003   ----------------------------------------
	.byte		VOL   , 96*m_BGM_Result_mvl/mxv
	.byte	W05
	.byte		BEND  , c_v-25
	.byte	W06
	.byte		        c_v-25
	.byte	W06
	.byte		        c_v-30
	.byte	W01
	.byte		VOL   , 85*m_BGM_Result_mvl/mxv
	.byte	W05
	.byte		BEND  , c_v-20
	.byte	W06
	.byte		        c_v-14
	.byte	W06
	.byte		        c_v-22
	.byte	W01
	.byte		VOL   , 73*m_BGM_Result_mvl/mxv
	.byte	W05
	.byte		BEND  , c_v-10
	.byte	W06
	.byte		        c_v-10
	.byte	W06
	.byte		        c_v-14
	.byte	W01
	.byte		VOL   , 62*m_BGM_Result_mvl/mxv
	.byte	W05
	.byte		BEND  , c_v-8
	.byte	W06
	.byte		        c_v-18
	.byte	W06
	.byte		        c_v-17
	.byte	W01
	.byte		VOL   , 51*m_BGM_Result_mvl/mxv
	.byte	W05
	.byte		BEND  , c_v-3
	.byte	W06
	.byte		        c_v-6
	.byte	W01
	.byte		        c_v-8
	.byte	W06
	.byte		VOL   , 40*m_BGM_Result_mvl/mxv
	.byte	W06
@ 004   ----------------------------------------
	.byte	W21
	.byte		EOT   , Cn2 
	.byte		        An4 
	.byte	W03
	.byte	GOTO
	 .word	m_BGM_Result_2_B1
m_BGM_Result_2_B2:
	.byte	FINE

@******************************************************@
	.align	2

m_BGM_Result:
	.byte	2	@ NumTrks
	.byte	0	@ NumBlks
	.byte	m_BGM_Result_pri	@ Priority
	.byte	m_BGM_Result_rev	@ Reverb.

	.word	m_BGM_Result_grp

	.word	m_BGM_Result_1
	.word	m_BGM_Result_2

	.end
