; Birdon theme
; 11/4 rhythm, composed in D Dorian
; An upbeat city theme, using staccato backing notes on Channel 2. The drum pattern is very simple and mainly here for stability of the soundscape.
; Channel 1 uses a quick staircase note pattern in some places as to emulate hammer-ons. 
; The intro part is identical to the last section of the loop, except for the more intricate drum pattern.
; Composed by LuciShrimp

Music_CoastTown:
	channel_count 4
	channel 1, Music_CoastTown_Ch1
	channel 2, Music_CoastTown_Ch2
	channel 3, Music_CoastTown_Ch3
	channel 4, Music_CoastTown_Ch4

Music_CoastTown_Ch1:
	volume 7, 7
	note_type 12, 11, 4
	vibrato 18, 2, 3
	duty_cycle 1
	tempo 140
	octave 3
	note A_, 4
	octave 4
	note C_, 4
	octave 3
	note B_, 2
	note A_, 2
	note G_, 8
	note A_, 4
	note B_, 4
	note A_, 4
	note B_, 2
	note G_, 2
	note F_, 4
	note G_, 4
	note B_, 4
	note A_, 4
	octave 4
	note D_, 2
	octave 3
	note B_, 2
	octave 4
	note C_, 4
	note D_, 4
	note E_, 2
	note F_, 2
	note G_, 4
	note F_, 4
	note E_, 4
	note D_, 4
	note E_, 2
	note F_, 2
	octave 8
.mainLoop:
	duty_cycle 1
	vibrato 18, 2, 3
	tempo 140
	note_type 12, 11, 4
	octave 4
	note G_, 4
	note F_, 2
	note E_, 2
	note D_, 2
	note C_, 2
	note_type 6, 11, 4
	note C#, 1
	note_type 12, 11, 4
	note D_, 7
	note_type 6, 11, 4
	rest 1
	note_type 12, 11, 4
	note E_, 2
	note D_, 2
	note C_, 2
	note D_, 4
	note C_, 2
	note F_, 4
	note G_, 4
	note F_, 4
	note_type 6, 11, 4
	note D#, 1
	note_type 12, 11, 4
	note E_, 11
	note_type 6, 11, 4
	rest 1
	note C#, 1
	note_type 12, 11, 4
	note D_, 11
	note_type 6, 11, 4
	rest 1
	note_type 12, 11, 4
	note C_, 12
	note_type 6, 11, 4
	note C#, 1
	note_type 12, 11, 4
	note D_, 7
	note_type 6, 11, 4
	rest 1
	note_type 12, 11, 4
	note C_, 16
	rest 8
	octave 3
	note B_, 12
	note_type 14, 11, 4
	note A_, 6
	note_type 6, 11, 4
	note A_, 1
	note B_, 1
	octave 4
	note_type 15, 11, 4
	note C_, 16
	rest 3
	note_type 3, 11, 4
	rest 1
	note_type 12, 11, 4
	note D_, 4
	note F_, 4
	note E_, 4
	octave 3
	note B_, 8
	octave 4
	note C_, 12
	note D_, 12
	note C_, 12
	note D_, 8
	note_type 6, 11, 4
	note D#, 1
	note_type 12, 11, 4
	note E_, 16
	rest 1
	note_type 6, 11, 4
	rest 1
	note_type 12, 11, 4
	note D_, 6
	note_type 6, 11, 4
	note D#, 1
	note_type 12, 11, 4
	note E_, 16
	rest 3
	note_type 6, 11, 4
	rest 1
	octave 3
	note_type 12, 11, 4
	sound_call .sub1
	note_type 12, 11, 4
	sound_loop 0, .mainLoop

.sub1:
	octave 3
	note A_, 4
	octave 4
	note C_, 4
	octave 3
	note B_, 2
	note A_, 2
	note G_, 8
	note A_, 4
	note B_, 4
	note A_, 4
	note B_, 2
	note G_, 2
	note F_, 4
	note G_, 4
	note B_, 4
	note A_, 4
	octave 4
	note D_, 2
	octave 3
	note B_, 2
	octave 4
	note C_, 4
	note D_, 4
	note E_, 2
	note F_, 2
	note G_, 4
	note F_, 4
	note E_, 4
	note D_, 4
	note E_, 2
	note F_, 2
	sound_ret

Music_CoastTown_Ch2:
	note_type 12, 2, 1
	vibrato 18, 2, 3
	duty_cycle 2
	octave 2
	note A_, 2
	note_type 6, 1, 1
	note A_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	octave 3
	note C_, 2
	note_type 6, 1, 1
	note C_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	octave 2
	note B_, 2
	note_type 6, 1, 1
	note A_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note G_, 2
	note_type 6, 1, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note G_, 2
	note_type 6, 1, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note A_, 2
	note_type 6, 1, 1
	note A_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note B_, 2
	note_type 6, 1, 1
	note B_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note A_, 2
	note_type 6, 1, 1
	note A_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note B_, 2
	note_type 6, 1, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note A_, 2
	octave 3
	note_type 6, 1, 1
	note C_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	octave 2
	note A_, 2
	octave 3
	note_type 6, 1, 1
	note E_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 2, 1
	note C_, 2
	note_type 6, 1, 1
	note C_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note E_, 2
	note_type 6, 2, 1
	note E_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note G_, 2
	note_type 6, 2, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note E_, 2
	note_type 6, 2, 1
	note E_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note G_, 2
	note_type 6, 2, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note B_, 2
	note_type 6, 2, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	note D_, 2
	note_type 6, 2, 1
	note D_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 6, 1
	note F_, 2
	note_type 6, 3, 1
	note F_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 6, 1
	note A_, 2
	note_type 6, 3, 1
	note A_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 6, 1
	note D_, 2
	note_type 6, 3, 1
	note G_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 7, 1
	note D_, 2
	note_type 6, 3, 1
	octave 2
	note B_, 2
	note_type 1, 4, 1
	rest 12
	note_type 12, 4, 1
	octave 8
.mainLoop:
	vibrato 18, 2, 3
	duty_cycle 2
	octave 3
	volume_envelope 8, 1
	note D_, 2
	volume_envelope 4, 1
	note D_, 2
	volume_envelope 8, 1
	note F_, 2
	volume_envelope 4, 1
	note F_, 2
	volume_envelope 8, 1
	note A_, 2
	volume_envelope 4, 1
	note A_, 2
	volume_envelope 8, 1
	note C_, 2
	volume_envelope 4, 1
	note C_, 2
	volume_envelope 8, 1
	note F_, 2
	volume_envelope 4, 1
	note F_, 2
	volume_envelope 8, 1
	note A_, 2
	volume_envelope 4, 1
	note F_, 2
	volume_envelope 8, 1
	note C_, 2
	volume_envelope 4, 1
	note C_, 2
	volume_envelope 8, 1
	note E_, 2
	volume_envelope 4, 1
	note E_, 2
	volume_envelope 8, 1
	note G_, 2
	volume_envelope 4, 1
	note G_, 2
	volume_envelope 8, 1
	octave 2
	note A_, 2
	octave 3
	volume_envelope 4, 1
	note C_, 2
	volume_envelope 8, 1
	octave 2
	note A_, 2
	octave 3
	volume_envelope 4, 1
	note E_, 2
	volume_envelope 8, 1
	note C_, 2
	volume_envelope 4, 1
	note C_, 2
	volume_envelope 8, 1
	note E_, 2
	volume_envelope 4, 1
	note E_, 2
	volume_envelope 8, 1
	note G_, 2
	volume_envelope 4, 1
	note G_, 2
	volume_envelope 8, 1
	note E_, 2
	volume_envelope 4, 1
	note E_, 2
	volume_envelope 8, 1
	note G_, 2
	volume_envelope 4, 1
	note G_, 2
	volume_envelope 8, 1
	note B_, 2
	volume_envelope 4, 1
	note G_, 2
	note D_, 2
	note D_, 2
	note F_, 2
	note F_, 2
	note A_, 2
	note A_, 2
	note D_, 2
	note G_, 2
	note D_, 2
	note B_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	octave 2
	note B_, 2
	note B_, 2
	octave 3
	note E_, 2
	note E_, 2
	note G_, 2
	note E_, 2
	octave 2
	note B_, 2
	octave 3
	note D_, 2
	octave 2
	note B_, 2
	octave 3
	note F_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	octave 2
	note B_, 2
	note B_, 2
	octave 3
	note E_, 2
	note E_, 2
	note G_, 2
	note E_, 2
	octave 2
	note B_, 2
	octave 3
	note D_, 2
	octave 2
	note B_, 2
	octave 3
	note F_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note A_, 2
	note A_, 2
	note F_, 2
	note F_, 2
	note D_, 2
	note D_, 2
	octave 2
	note B_, 2
	note B_, 2
	octave 3
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note E_, 2
	note E_, 2
	note D_, 2
	note F_, 2
	note A_, 2
	note F_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note B_, 2
	note B_, 2
	note G_, 2
	note G_, 2
	note E_, 2
	note E_, 2
	note A_, 2
	note A_, 2
	note B_, 2
	note B_, 2
	note G_, 2
	note G_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note B_, 2
	note G_, 2
	note E_, 2
	octave 2
	note A_, 2
	note A_, 2
	octave 3
	note C_, 2
	note C_, 2
	octave 2
	note B_, 2
	note A_, 2
	note G_, 2
	note G_, 2
	note G_, 2
	note G_, 2
	note A_, 2
	note A_, 2
	note B_, 2
	note B_, 2
	note A_, 2
	note A_, 2
	note B_, 2
	note G_, 2
	note A_, 2
	octave 3
	note C_, 2
	octave 2
	note A_, 2
	octave 3
	note E_, 2
	note C_, 2
	note C_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note E_, 2
	note E_, 2
	note G_, 2
	note G_, 2
	note B_, 2
	note G_, 2
	note D_, 2
	note D_, 2
	note F_, 2
	note F_, 2
	note A_, 2
	note A_, 2
	note D_, 2
	note G_, 2
	note D_, 2
	octave 2
	note B_, 2
	octave 3
	note_type 12, 4, 1
	sound_loop 0, .mainLoop

Music_CoastTown_Ch3:
	note_type 12, 2, 5
	vibrato 6, 2, 6
	octave 3
	note D_, 2
	rest 4
	note G_, 2
	note A_, 2
	note F_, 2
	octave 2
	note A#, 2
	octave 3
	rest 4
	note D_, 2
	note F_, 2
	note A_, 2
	note G_, 2
	rest 2
	note G_, 2
	rest 2
	note C_, 2
	note E_, 2
	note F_, 2
	rest 2
	note E_, 2
	note D_, 2
	note C_, 2
	rest 2
	note C_, 2
	rest 2
	note G_, 2
	note E_, 2
	octave 2
	note B_, 2
	octave 3
	rest 2
	note D_, 2
	rest 2
	note E_, 2
	note G_, 2
	note D_, 2
	rest 2
	note D_, 2
	rest 2
	note F_, 2
	note G_, 2
	note A_, 2
	rest 2
	note G_, 2
	note F_, 2
	octave 8
.mainLoop:
	vibrato 6, 2, 6
	octave 3
	volume_envelope 2, 5
	note D_, 2
	rest 2
	note D_, 2
	rest 2
	note A_, 2
	note F_, 2
	note C_, 2
	rest 2
	note C_, 2
	rest 2
	note F_, 2
	note A_, 2
	note G_, 2
	rest 2
	note G_, 2
	rest 2
	note C_, 2
	note E_, 2
	note F_, 2
	rest 2
	note E_, 2
	note D_, 2
	note C_, 2
	rest 2
	note C_, 2
	rest 2
	note G_, 2
	note E_, 2
	octave 2
	note B_, 2
	rest 2
	note B_, 2
	octave 3
	note D_, 2
	note G_, 2
	note E_, 2
	note D_, 2
	rest 2
	note D_, 2
	rest 2
	note F_, 2
	note G_, 2
	note A_, 2
	rest 2
	note G_, 2
	note D_, 2
	note C_, 4
	note E_, 8
	note C_, 4
	note G_, 4
	octave 4
	note C_, 4
	octave 2
	note B_, 4
	octave 3
	note E_, 8
	octave 2
	note B_, 2
	octave 3
	note D_, 2
	note F_, 2
	note B_, 2
	note C_, 4
	note E_, 4
	octave 4
	note C_, 4
	octave 3
	note G_, 8
	note E_, 2
	note C_, 2
	octave 2
	note B_, 2
	octave 3
	note G_, 2
	note E_, 8
	note F_, 2
	note D_, 2
	octave 2
	note B_, 4
	octave 3
	note C_, 4
	note E_, 4
	note A_, 2
	note E_, 2
	octave 2
	note B_, 4
	octave 3
	note D_, 4
	note F_, 2
	note D_, 2
	note C_, 4
	note E_, 4
	note G_, 2
	note E_, 2
	note D_, 4
	note A_, 2
	note F_, 2
	note E_, 4
	note G_, 8
	note B_, 4
	note A_, 4
	note G_, 4
	note E_, 4
	note G_, 8
	note E_, 4
	note B_, 2
	note G_, 2
	sound_call .sub1
	note_type 12, 2, 5
	sound_loop 0, .mainLoop

.sub1:
	octave 3
	volume_envelope 2, 5
	note D_, 2
	rest 4
	note G_, 2
	note A_, 2
	note F_, 2
	octave 2
	note A#, 2
	octave 3
	rest 4
	note D_, 2
	note F_, 2
	note A_, 2
	note G_, 2
	rest 2
	note G_, 2
	rest 2
	note C_, 2
	note E_, 2
	note F_, 2
	rest 2
	note E_, 2
	note D_, 2
	note C_, 2
	rest 2
	note C_, 2
	rest 2
	note G_, 2
	note E_, 2
	octave 2
	note B_, 2
	octave 3
	rest 2
	note D_, 2
	rest 2
	note E_, 2
	note G_, 2
	note D_, 2
	rest 2
	note D_, 2
	rest 2
	note F_, 2
	note G_, 2
	note A_, 2
	rest 2
	note G_, 2
	note F_, 2
	sound_ret

Music_CoastTown_Ch4:
	toggle_noise 0
	drum_speed 12
	octave 5
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 8, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 6, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 6, 1
	drum_note 6, 1
	octave 8
.mainLoop:
	toggle_noise
	toggle_noise 2
	octave 5
.loop1:
.loop2:
	sound_call .sub1
	rest 1
	sound_loop 2, .loop2
.loop3:
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 3
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 8, 1
	rest 3
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 3
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 3
	drum_note 2, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	drum_note 6, 1
	sound_loop 2, .loop3
	sound_call .sub1
	drum_speed 12
	rest 1
	sound_call .sub1
	drum_speed 12
	rest 1
	octave 5
	sound_loop 0, .mainLoop

.sub1:
	drum_note 2, 1
	rest 3
	drum_note 8, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 8, 1
	rest 3
	octave 6
	drum_note 3, 1
	rest 3
	octave 5
	drum_note 8, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 8, 1
	rest 3
	octave 6
	drum_note 3, 1
	rest 3
	octave 5
	drum_note 8, 1
	rest 1
	drum_note 6, 1
	rest 1
	drum_note 8, 1
	rest 3
	octave 6
	drum_note 3, 1
	rest 3
	octave 5
	drum_note 8, 1
	rest 1
	drum_note 8, 1
	sound_ret
