Music_RivalBattle:
	channel_count 3
	channel 1, Music_RivalBattle_Ch1
	channel 2, Music_RivalBattle_Ch2
	channel 3, Music_RivalBattle_Ch3

Music_RivalBattle_Ch1:
	tempo 102
	volume 7, 7
	duty_cycle 3
	pitch_offset 2
	vibrato 8, 1, 5
	note_type 12, 11, 2
	octave 3
	note F#, 2
	note A#, 4
	volume_envelope 11, 7
	note A#, 10
	volume_envelope 11, 2
	note F#, 2
	octave 4
	note C#, 4
	volume_envelope 11, 7
	note C#, 6
	note E_, 4
.loop1:
	volume_envelope 11, 2
	octave 2
	note A#, 6
	volume_envelope 11, 7
	octave 3
	note C#, 6
	volume_envelope 11, 2
	note D#, 4
	sound_loop 3, .loop1
	volume_envelope 11, 2
	octave 2
	note A#, 2
	octave 3
	note C#, 4
	volume_envelope 11, 7
	note C#, 10
.loop2:
	volume_envelope 11, 2
	octave 3
	note G#, 6
	volume_envelope 11, 7
	note B_, 6
	volume_envelope 11, 2
	octave 4
	note C#, 4
	sound_loop 3, .loop2
	volume_envelope 11, 2
	octave 3
	note G#, 2
	note B_, 4
	volume_envelope 4, -5
	note B_, 10
.mainloop:
	volume_envelope 11, 7
	note A#, 6
	note F#, 6
	note D#, 4
	note F_, 4
	note F#, 4
	note G#, 2
	note A#, 6
	volume_envelope 11, 2
	note F_, 1
	note D#, 1
	note C#, 1
	note D#, 1
	volume_envelope 11, 7
	note F_, 4
	volume_envelope 11, 2
	note G#, 1
	note F#, 1
	note F_, 1
	note F#, 1
	volume_envelope 11, 7
	note G#, 4
	volume_envelope 11, 6
	note G#, 2
	note A#, 2
	note B_, 2
	note A#, 2
	note B_, 2
	octave 4
	note C#, 2
	octave 3
	note B_, 2
	octave 4
	note E_, 2
	volume_envelope 11, 7
	octave 3
	note A#, 6
	note F#, 6
	note A#, 4
	octave 4
	note C#, 4
	octave 3
	note B_, 4
	note A#, 2
	note G#, 6
	note F_, 6
	octave 4
	note C#, 6
	octave 3
	note G#, 4
	volume_envelope 11, 5
	note C#, 2
	note F_, 2
	note G#, 2
	octave 4
	note C_, 2
	note C#, 2
	octave 3
	note G#, 2
	note F_, 2
	note G#, 2
	volume_envelope 11, 7
	note F#, 10
	volume_envelope 11, 4
	octave 2
	note B_, 2
	octave 3
	note D#, 2
	note F#, 2
	volume_envelope 11, 7
	note F_, 4
	note D#, 4
	note C#, 2
	note D#, 6
	volume_envelope 10, 0
	note F_, 8
	volume_envelope 10, 7
	note F_, 8
	volume_envelope 10, 0
	octave 2
	note A#, 8
	volume_envelope 10, 7
	note A#, 8
	volume_envelope 11, 7
	octave 3
	note F#, 10
	volume_envelope 11, 5
	octave 2
	note B_, 2
	octave 3
	note D#, 2
	note F#, 2
	note F_, 2
	note D#, 2
	note C#, 2
	note D#, 2
	note G#, 2
	note F#, 2
	note F_, 2
	note G#, 2
	volume_envelope 10, 0
	note A#, 16
	volume_envelope 10, 7
	note A#, 16
	volume_envelope 10, 0
	note B_, 8
	volume_envelope 10, 7
	note B_, 4
	volume_envelope 11, 7
	note G#, 4
	volume_envelope 11, 5
	octave 4
	note E_, 2
	note D#, 2
	note C#, 2
	octave 3
	note B_, 2
	octave 4
	note F#, 2
	note E_, 2
	note D#, 2
	note C#, 2
.loop3:
	octave 3
	note A#, 2
	note E_, 2
	note A#, 2
	octave 4
	note D#, 2
	note E_, 2
	note D#, 2
	octave 3
	note A#, 2
	octave 4
	note D#, 2
	octave 3
	note A#, 2
	octave 4
	note D#, 2
	note E_, 2
	note D#, 2
	octave 3
	note A#, 2
	note D#, 2
	note A#, 2
	octave 4
	note D#, 2
	sound_loop 2, .loop3
	volume_envelope 9, 4
	octave 3
	note D#, 8
	octave 2
	note A#, 8
	octave 3
	note G_, 8
	note F_, 8
	volume_envelope 9, 6
	octave 2
	note G#, 8
	note A#, 8
	note B_, 8
	octave 3
	note C#, 8
	volume_envelope 11, 7
	octave 4
	note D#, 8
	octave 3
	note A#, 8
	octave 4
	note G_, 8
	note F_, 8
	octave 3
	note G#, 8
	note A#, 8
	note B_, 8
	octave 4
	note C#, 8
	volume_envelope 10, 0
	note D#, 8
	volume_envelope 10, 7
	note D#, 8
	volume_envelope 10, 0
	octave 3
	note G_, 8
	volume_envelope 10, 7
	note G_, 8
	volume_envelope 11, 7
	note D#, 8
	note C#, 8
	note D#, 4
	note C#, 4
	octave 2
	note B_, 4
	octave 3
	note C#, 4
	volume_envelope 12, 7
	octave 2
	note A#, 6
	octave 3
	note C#, 6
	note D#, 4
	note E_, 6
	note D#, 6
	note C#, 4
	note G#, 6
	note E_, 6
	note D#, 4
	note C#, 6
	note D#, 6
	note D_, 4
	octave 2
	note G#, 6
	note B_, 6
	octave 3
	note C#, 4
	note D_, 6
	note C#, 6
	octave 2
	note B_, 4
	octave 3
	note F#, 6
	note D_, 6
	note C#, 4
	octave 2
	note B_, 6
	octave 3
	note C#, 10
	sound_loop 0, .mainloop

Music_RivalBattle_Ch2:
	duty_cycle 3
	vibrato 8, 3, 6
	pitch_offset 1
	note_type 12, 12, 2
	octave 4
	note E_, 1
	note D#, 1
	note D_, 1
	note C#, 1
	note D_, 1
	note C#, 1
	note C_, 1
	octave 3
	note B_, 1
	octave 4
	note C_, 1
	octave 3
	note B_, 1
	note A#, 1
	note A_, 1
	note A#, 1
	note A_, 1
	note G#, 1
	note G_, 1
	note G#, 1
	note G_, 1
	note F#, 1
	note F_, 1
	note F#, 1
	note F_, 1
	note E_, 1
	note D#, 1
	note E_, 1
	note D#, 1
	note D_, 1
	note C#, 1
	note D_, 1
	note C#, 1
	note C_, 1
	octave 2
	note B_, 1
	volume_envelope 12, 2
	octave 4
	note D#, 6
	volume_envelope 12, 7
	octave 3
	note F#, 6
	volume_envelope 12, 2
	note G#, 4
.loop1:
	volume_envelope 12, 2
	note D#, 6
	volume_envelope 12, 7
	note F#, 6
	volume_envelope 12, 2
	note G#, 4
	sound_loop 2, .loop1
	volume_envelope 12, 2
	note D#, 2
	note F#, 4
	volume_envelope 12, 7
	note F#, 8
	volume_envelope 10, 2
	note B_, 1
	octave 4
	note C_, 1
.loop2:
	volume_envelope 12, 2
	note C#, 6
	volume_envelope 12, 7
	note E_, 6
	volume_envelope 12, 2
	note F#, 4
	sound_loop 3, .loop2
	volume_envelope 12, 2
	note C#, 2
	note E_, 4
	volume_envelope 11, 0
	note E_, 4
	volume_envelope 11, 7
	note E_, 6
.mainloop:
	sound_call .sub1
	volume_envelope 11, 0
	note G#, 8
	volume_envelope 11, 7
	note G#, 8
	sound_call .sub1
	volume_envelope 4, -6
	note G#, 8
	volume_envelope 11, 7
	note G#, 8
	volume_envelope 11, 0
	octave 3
	note B_, 10
	volume_envelope 11, 7
	note B_, 6
	volume_envelope 11, 0
	octave 4
	note C#, 8
	octave 3
	note B_, 8
	volume_envelope 11, 0
	note A#, 10
	volume_envelope 11, 7
	note A#, 6
	volume_envelope 2, -7
	note D#, 10
	volume_envelope 11, 7
	note D#, 6
	volume_envelope 11, 0
	note B_, 10
	volume_envelope 11, 7
	note B_, 6
	volume_envelope 12, 7
	octave 4
	note C#, 8
	octave 3
	note B_, 8
	volume_envelope 11, 0
	octave 4
	note D#, 16
	volume_envelope 11, 7
	note D#, 16
	volume_envelope 11, 0
	note E_, 4
	volume_envelope 11, 7
	note E_, 6
	volume_envelope 12, 7
	note E_, 2
	note G#, 2
	note B_, 2
	octave 5
	note C#, 8
	octave 4
	note B_, 8
	volume_envelope 11, 0
	note A#, 10
	volume_envelope 11, 7
	note A#, 6
	volume_envelope 11, 0
	note A_, 10
	volume_envelope 11, 7
	note A_, 6
	volume_envelope 11, 0
	note G#, 10
	volume_envelope 11, 7
	note G#, 6
	volume_envelope 11, 0
	note G_, 10
	volume_envelope 11, 7
	note G_, 6
	volume_envelope 10, 4
	octave 3
	note G_, 8
	note D#, 8
	note A#, 8
	note G#, 8
	volume_envelope 10, 6
	octave 2
	note B_, 8
	octave 3
	note C#, 8
	note D#, 8
	note F_, 8
	volume_envelope 12, 7
	octave 4
	note G_, 8
	note D#, 8
	note A#, 8
	note G#, 8
	octave 3
	note B_, 8
	octave 4
	note C#, 8
	note D#, 8
	note F_, 8
	volume_envelope 11, 0
	note G_, 16
	note D#, 16
	octave 3
	note B_, 8
	note A#, 8
	note G#, 8
	volume_envelope 12, 7
	note F_, 8
.loop3:
	volume_envelope 12, 2
	octave 3
	note A#, 6
	volume_envelope 12, 7
	octave 4
	note C#, 6
	volume_envelope 12, 2
	note D#, 4
	sound_loop 3, .loop3
	volume_envelope 12, 2
	octave 3
	note A#, 2
	octave 4
	note C#, 4
	volume_envelope 11, 7
	note C#, 6
	volume_envelope 9, -2
	note C#, 4
.loop4:
	volume_envelope 12, 2
	octave 3
	note G#, 6
	volume_envelope 12, 7
	note B_, 6
	volume_envelope 12, 2
	octave 4
	note C#, 4
	sound_loop 3, .loop4
	volume_envelope 12, 2
	octave 3
	note G#, 2
	note B_, 4
	volume_envelope 12, 7
	note B_, 6
	volume_envelope 6, -2
	octave 4
	note D_, 4
	sound_loop 0, .mainloop

.sub1:
	volume_envelope 12, 7
	note D#, 10
	volume_envelope 12, 4
	octave 3
	note A#, 2
	octave 4
	note D#, 2
	note F#, 2
	volume_envelope 12, 5
	note F_, 4
	note D#, 4
	volume_envelope 12, 2
	note C#, 2
	volume_envelope 12, 7
	note D#, 6
	volume_envelope 11, 0
	note F_, 8
	volume_envelope 11, 7
	note F_, 8
	sound_ret

Music_RivalBattle_Ch3:
	note_type 12, 1, 9
	octave 3
	note F#, 2
	note A#, 2
	rest 2
	note A#, 10
	octave 3
	note F#, 2
	octave 4
	note C#, 2
	rest 2
	note C#, 6
	octave 3
	note C#, 2
	note D_, 2
.loop1:
	note D#, 2
	note C#, 2
	note D#, 2
	note F#, 4
	note E_, 2
	note D#, 2
	note C#, 2
	sound_loop 4, .loop1
.loop2:
	octave 3
	note C#, 2
	octave 2
	note B_, 2
	octave 3
	note C#, 2
	note E_, 4
	note D_, 2
	note C#, 2
	octave 2
	note B_, 2
	sound_loop 3, .loop2
	octave 3
	note C#, 2
	note E_, 2
	note C#, 2
	octave 2
	note B_, 4
	octave 3
	note C_, 2
	note C#, 2
	note D_, 2
.mainloop:
	sound_call .sub1
	octave 2
	note A#, 2
	octave 4
	note C#, 2
	octave 2
	note A#, 2
	octave 3
	note B_, 2
	octave 2
	note A#, 2
	octave 3
	note A#, 2
	octave 2
	note A#, 2
	octave 3
	note G#, 2
	sound_call .sub2
	note C#, 2
	note G#, 2
	octave 4
	note C#, 2
	octave 3
	note G#, 4
	note C#, 2
	note C_, 2
	octave 2
	note B_, 2
	sound_call .sub1
	octave 2
	note A#, 2
	octave 3
	note A#, 2
	octave 2
	note A#, 2
	octave 3
	note G#, 2
	octave 2
	note A#, 2
	octave 3
	note F#, 2
	octave 2
	note A#, 2
	octave 3
	note F_, 2
	sound_call .sub2
.loop3:
	note C#, 2
	note G#, 2
	sound_loop 4, .loop3
	sound_call .sub3
	note G#, 2
	note F#, 2
.loop4:
	octave 2
	note A#, 2
	octave 3
	note F_, 2
	sound_loop 4, .loop4
	octave 2
	note A#, 2
	octave 3
	note F#, 2
	octave 2
	note A#, 2
	octave 3
	note F#, 2
	octave 2
	note A#, 2
	octave 3
	note F#, 2
	note F_, 2
	note D#, 2
	sound_call .sub3
	octave 2
	note B_, 2
	octave 3
	note D_, 2
	sound_call .sub4
	octave 3
	note D#, 2
	octave 4
	note D#, 2
	sound_call .sub4
	octave 3
	note D#, 2
	note A#, 2
	note E_, 2
	note B_, 2
	octave 4
	note E_, 2
	octave 3
	note E_, 2
	note B_, 2
	octave 4
	note E_, 2
	octave 3
	note E_, 2
	octave 4
	note E_, 2
	octave 3
	note E_, 2
	note B_, 2
	octave 4
	note E_, 2
	octave 3
	note E_, 2
	note E_, 2
	note F#, 2
	note G_, 2
	note G#, 2
.loop5:
	note D#, 2
	note A#, 2
	sound_loop 4, .loop5
.loop6:
	note D#, 2
	note A_, 2
	sound_loop 4, .loop6
.loop7:
	note D#, 2
	note G#, 2
	sound_loop 4, .loop7
.loop8:
	note D#, 2
	note G_, 2
	sound_loop 12, .loop8
.loop9:
	octave 2
	note B_, 2
	octave 3
	note D#, 2
	sound_loop 4, .loop9
.loop10:
	octave 2
	note B_, 2
	octave 3
	note F#, 2
	sound_loop 4, .loop10
	note D#, 2
	note G_, 2
	note A#, 2
	note D#, 2
	note G_, 2
	note A#, 2
	note D#, 2
	note A#, 2
	note D#, 2
	note G_, 2
	note A#, 2
	note D#, 2
	note G_, 2
	note A#, 2
	note D#, 2
	note A#, 2
	octave 2
	note B_, 2
	octave 3
	note G_, 2
	note B_, 2
	octave 2
	note B_, 2
	octave 3
	note G_, 2
	note B_, 2
	octave 2
	note B_, 2
	octave 3
	note B_, 2
	octave 2
	note B_, 2
	octave 3
	note G#, 2
	note B_, 2
	octave 2
	note B_, 2
	octave 4
	note D#, 2
	note C#, 2
	octave 3
	note B_, 2
	note G#, 2
	note G_, 8
	note D#, 8
	note A#, 8
	note G_, 8
	octave 2
	note B_, 8
	octave 3
	note C#, 8
	note D#, 8
	note F_, 8
.loop11:
	octave 2
	note A#, 2
	octave 3
	note D#, 2
	sound_loop 7, .loop11
	note E_, 2
	note D#, 2
.loop12:
	octave 2
	note A#, 2
	octave 3
	note D#, 2
	sound_loop 6, .loop12
	octave 2
	note A#, 2
	octave 3
	note F#, 2
	note F_, 2
	note E_, 2
.loop13:
	octave 2
	note G#, 2
	octave 3
	note C#, 2
	sound_loop 7, .loop13
	note D_, 2
	note C#, 2
.loop14:
	octave 2
	note G#, 2
	octave 3
	note C#, 2
	sound_loop 4, .loop14
	octave 2
	note B_, 2
	note G#, 2
	note B_, 2
	octave 3
	note F_, 4
	note E_, 2
	note D#, 2
	note D_, 2
	sound_loop 0, .mainloop

.sub1:
.sub1loop1:
	octave 2
	note A#, 2
	octave 3
	note D#, 2
	sound_loop 4, .sub1loop1
	sound_ret

.sub2:
	note C#, 2
	note G#, 2
	octave 4
	note C#, 2
	octave 3
	note G#, 4
	octave 4
	note C#, 2
	octave 3
	note C#, 2
	note G#, 2
	sound_ret

.sub3:
.sub3loop1:
	octave 2
	note B_, 2
	octave 3
	note F#, 2
	sound_loop 7, .sub3loop1
	sound_ret

.sub4:
.sub4loop1:
	octave 3
	note D#, 2
	note A#, 2
	octave 4
	note D#, 2
	sound_loop 2, .sub4loop1
	sound_ret
