Int LOOP=3
Tempo 80
Int LOOPDEFS=0
Function LoopPlay(Str Mml) {
	Str _MML

	For (Int i = 1; i <= LOOP + LOOPDEFS; i++) {
		_MML=_MML + #STR(Mml)
	}
	_MML
}


TR(1)
	q92
	LoopPlay(
	@(22)
		l8
		[
			o5
			gab>cde
			g4.^eg
			f4edef
			:
			e4f16e16d4r8
		]
		e4f16e16Sub{d10e10f10g10}r4.
		o6l8
		a4ccfa
		g4<bb>eg
		f4<aa>df
		e4d8Sub{c10d19.e19.f17.g17.}r4.
		a4ccfa
		g4ab4>c
		d2c<b>
		c2r4
	)
TR(3)
	LoopPlay(
		@(23)
		l8o4q30
		#gce={'g>ce<'}
		#ace={'a>ce<'}
		#gbe={'gb>e<'}
		#acf={'a>cf<'}
		#gbf={'gb>f<'}
		[
			[r [#gce]]
			[r [#gbe]]
			[r [#acf]]
			[1 r [#acf]]
			[1 r [#gbf]]
		]
			[r [#acf]]
			[r [#gbe]]
			[1 r [#acf]]
			[1 r [#gbf]]
			[r [#gce]]

			[r [#acf]]
			[1 r [#gce]]
			[1 r [#ace]]
			[1 r [#acf]]
			[1 r [#gbf]]
			[r [#gce]]
		
	)
	o4q100
	'g1>c1d1e1'

TR(9)
	LoopPlay(
		@(24)
		o2
		l4.
		[
			[c]
			[e]
			[f]
			:
			g<g>
		]
		g g4f#8
			[f]
			[e]
			d<g>
			[c]
			[f]
			e<a>
			d<g>
			c<g>
	)
	q100c1

TR(10)
	音色(OrchestraSet)
	$b{n(Kick2),}
	$s{n(Snare2),}
	$t{n(BellTree),}
	$o{n(OpenTriangle),}
	l8
	#r={Rythm { 'ob'ss'ob'ss }}
	Sub {[16 #r]}
	r2.r2.r2.r2.
	LOOPDEFS=-1
	LoopPlay(
		Sub {[16 #r]}
		[4  Rythm{t2. } r2.r2.r2.]
	)
	Sub {[12 #r]}
	[3  Rythm{t2. } r2.r2.r2.]
	Rythm{'bto1'}
End

##############################################################################
#
# TiMidiTy Config (v2.0)
dir "../patches/sf2_all/Timbres Of Heaven"
dir ../patches/guspat/izumo/inst
dir ../patches/guspat/izumo
dir ../patches/guspat
dir ../patches
dir ../patches/sf2_all
dir ../patches/sf2_all/atomic
dir ../patches/sf2_all/fluid3
dir ../patches/sf2_all/realgs
dir ../patches/sf2_all/ultimate
dir ../patches/sf2_all/scc
dir ../patches/sf2_all/SGM
dir ../patches/sf2_all/Evanessence2
dir ../patches/sf2_all/GMRBasico
dir ../patches/sf2_all/ForClassicalMusic
dir ../patches/sf2_drum/Drumkit
dir ../patches/sf2_drum/Drum
dir ../patches/sf2_drum/Drum/pettinhouse
dir ../patches/sf2_drum/Drumkit/the_open_source_drumkit
dir ../patches/sf2_drum/Drum/the_open_source_drumkit
dir ../patches/sf2_part/piano
dir ../patches/sf2_part/VintageKeys
dir ../patches/sf2_part/ORCHESTRAL/
dir ../patches/sf2_part/OrchHit/
dir ../patches/sf2_part/strings
dir ../patches/sf2_part/wood
dir ../patches/sf2_all/musix
dir ../patches/sf2_all/SGM
dir ../patches/sf2_all/airfont
dir ../patches/sf2_all/Giant
dir ../patches/sf2_all/orch
dir ../patches/sf2_all/Titanic
dir "../patches/sf2_part/Sonatina Symphonic Orchestra"
dir "../patches/sf2_collection/3.5G HQ Orchestral"
dir "../patches/sf2_collection/3.5G HQ Orchestral/Strings part 1"
dir "../patches/sf2_collection/3.5G HQ Orchestral/Brass and Woodwinds/Brass"
dir "../patches/sf2_collection/Free Soundfont Kit/STRINGS"
dir "../patches/sf2_collection/Free Soundfont Kit/STRINGS"
dir "../patches/sf2_collection/Free Soundfont Kit/Brass"
dir "../patches/sf2_collection/3.5G HQ Orchestral/Brass and Woodwinds/Brass"
dir "../patches/sf2_collection/Free Soundfont Kit/STRINGS"
dir "../patches/sf2_collection/Free Soundfont Kit/STRINGS"
dir "../patches/sf2_collection/Free Soundfont Kit/Brass"

dir ../patches/guspat/izumo/inst
dir ../patches/guspat/izumo
dir ../patches/guspat
dir ../patches/sf2_all
dir ../patches/sf2_all/atomic
dir ../patches/sf2_all/fluid3
dir ../patches/sf2_all/realgs
dir ../patches/sf2_all/ultimate
dir ../patches/sf2_all/scc
dir ../patches/sf2_all/GMRBasico
dir ../patches/sf2_all/ForClassicalMusic
dir ../patches/sf2_all/bank48
dir ../patches/sf2_part/drumkit
dir ../patches/sf2_part/piano
dir ../patches/sf2_part/guitar
dir ../patches/sf2_part/harpsichord
dir ../patches/sf2_part/ORCHESTRAL
dir ../patches/sf2_part/Clarinet
dir ../patches/sf2_part/chipfont
dir ../patches/sf2_part/drum
dir ../patches/sf2_drum/drum/pettinhouse
dir "../patches/sf2_collection/3.5G HQ Orchestral"
dir "../patches/sf2_collection/3.5G HQ Orchestral/Strings part 1"

dir ../patches/sf2_part/famicom
dir ../patches/sf2_all/musix
dir ../patches/sf2_all/Musyng
dir ../patches/sf2_all/Evanessence2

dir ../patches/sf2_all/Giant
dir ../patches/sf2_all/Titanic
dir "../patches/sf2_drum/drum/MPC Drum Library"
dir "../patches/sf2_part/Sonatina Symphonic Orchestra"
dir "../patches/sf2_part"
dir "../patches/nanako"
dir "../patches/wood"
dir "../patches/sf2_part/Anthonys Philharmonic"
dir "../patches/sf2_all/Timbres Of Heaven"

##############################################################################
soundfont "Titanic_200_GMGS_1.2.sf2"
bank 0

	21 %font "Accordion/Diato.sf2" 0 1 amp=160
	22 %font "Accordion/Diato.sf2" 0 2 amp=130
	23 %font "Accordion/Diato.sf2" 0 5 amp=100

##############################################################################

drumset 48
	# 大砲
	29 %font "canon.sf2" 128 0 60 amp=511 pan=60
	30 %font "canon.sf2" 128 0 60 amp=511 pan=50
	31 %font "canon.sf2" 128 0 60 amp=511 pan=40
	32 %font "canon.sf2" 128 0 60 amp=511 pan=30
#	29 %font "fh70.sf2" 128 0 60 amp=511 pan=60
#	30 %font "fh70.sf2" 128 0 60 amp=511 pan=50
#	31 %font "fh70.sf2" 128 0 60 amp=511 pan=40
#	32 %font "fh70.sf2" 128 0 60 amp=511 pan=30

	# bd
	36 %font "Percussion - All Percussion.sf2" 128 0 37 amp=200 pan=-25
	37 %font "Percussion - All Percussion.sf2" 128 0 37 amp=200 pan=-25
	36 %font "Percussion - All Percussion.sf2" 128 0 37 amp=300 pan=-25

	# sd
	38 %font "Percussion - All Percussion.sf2" 128 0 38 amp=100 pan=-60
	39 %font "Percussion - All Percussion.sf2" 128 0 40 amp=100 pan=-60
	40 %font "Percussion - All Percussion.sf2" 128 0 38 amp=100 pan=-60
	41 %font "Percussion - All Percussion.sf2" 128 0 40 amp=100 pan=-60

	# cymbal
	49 %font "Percussion - All Percussion.sf2" 128 0 45 amp=190 pan=-45
	57 %font "Percussion - All Percussion.sf2" 128 0 45 amp=190 pan=50

	# gong
	58 %font "Percussion - All Percussion.sf2" 128 0 67 amp=511 pan=-40
	59 %font "Percussion - All Percussion.sf2" 128 0 68 amp=511 pan=-40
	60 %font "Percussion - All Percussion.sf2" 128 0 69 amp=511 pan=-40

	# gong roll
	61 %font "Percussion - All Percussion.sf2" 128 0 44 amp=511 tune=-9 pan=-40

	# Triangle Open
	81 %font "Orchestra Drums Kit.SF2" 128 0 81 amp=100 pan=-35
	# Triangle Close
	80 %font "Orchestra Drums Kit.SF2" 128 0 81 amp=200 pan=-35
	# Triangle Loop
	82 %font "Percussion - All Percussion.sf2" 128 0 58 amp=300 pan=-25
	84 %font "Percussion - All Percussion.sf2" 128 0 48 keep=loop amp=120