# The soundtrack's instruments (tools/mkmusic.py). One value a frame; '|' marks the loop.
# vol 0-15. pitch: semitones, or with 'fine' period units (vibrato; a higher period is lower).
# ZZT's own sounds play at a constant 8 on pulse 1: the music sits around and under that.

# ---- leads (pulse 2)
inst lead    duty=25 fine vol=11 10 10 9 9 8 8 8 7 | 7
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 1 2 2 1 1 0 -1 -1 -2 -2 -1 -1
inst leadst  duty=25 vol=10 9 8 7 6 5 4 4 3 | 3
inst lead50  duty=50 fine vol=9 9 8 8 8 7 7 | 7
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 1 2 2 1 1 0 -1 -1 -2 -2 -1 -1
inst ghost   duty=50 fine vol=4 6 8 9 9 9 8 8 | 8
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 1 1 2 2 2 1 1 1 0 -1 -1 -1 -2 -2 -2 -1 -1 -1
inst brass   duty=50 fine vol=12 11 10 10 9 9 9 8 | 8
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 2 2 1 0 -1 -2 -2 -1

# ---- harmony (pulse 1: ZZT's effects take it for a moment now and then)
inst am      duty=12 vol=7 6 5 5 4 4 3 | 3   pitch=| 0 3 7
inst aM      duty=12 vol=7 6 5 5 4 4 3 | 3   pitch=| 0 4 7
inst a7      duty=12 vol=7 6 5 5 4 4 3 | 3   pitch=| 0 4 7 10
inst asus    duty=12 vol=7 6 5 5 4 4 3 | 3   pitch=| 0 5 7
inst pam     duty=12 vol=3 4 4 4 | 4         pitch=| 0 3 7
inst paM     duty=12 vol=3 4 4 4 | 4         pitch=| 0 4 7
inst pad     duty=50 fine vol=3 4 5 5 | 5
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 1 1 1 0 -1 -1 -1 -1
inst pluck   duty=25 vol=10 8 7 6 5 5 4 4 3 3 | 3
inst echo    duty=25 fine vol=5 5 5 4 4 4 3 | 3
             pitch=0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | 0 1 1 2 2 1 1 0 -1 -1 -2 -2 -1 -1
inst bell    duty=12 vol=9 7 6 5 4 4 3 3 2 2 2 1 1 1 1 0 | 0

# ---- bass (the triangle: only on or off)
inst bass    vol=15 15 15 15 15 15 0 | 0
inst bassl   vol=15 | 15
inst bassq   vol=15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 0 | 0
inst tkick   vol=15 15 15 15 0 | 0     pitch=24 17 11 5 0 | 0

# ---- drums (the noise; the note is the noise period, 0 high .. 15 low)
inst kick    vol=13 11 8 5 3 1 0 | 0                         pitch=0 1 2 3 | 3
inst snare   vol=12 11 9 8 6 5 4 3 2 1 0 | 0                 pitch=1 0 | 0
inst hat     vol=5 3 1 0 | 0
inst ohat    vol=6 5 4 4 3 3 2 2 1 1 0 | 0
inst crash   vol=11 10 9 8 8 7 7 6 6 5 5 5 4 4 4 3 3 3 3 2 2 2 2 1 1 1 1 0 | 0
inst tom     vol=12 10 8 6 4 2 0 | 0                         pitch=0 1 2 3 4 | 4
inst tick    vol=3 1 0 | 0
inst heart   vol=9 7 4 2 0 | 0                               pitch=0 1 2 | 2

drum k kick 12
drum s snare 6
drum h hat 1
drum j ohat 1
drum x crash 4
drum t tom 7
drum u tom 10
drum i tick 0
drum b heart 13
