#! beatscript 2 tempo 150 key am let level_chords = let boss_chords = let chip_bass = let boss_bass = let hero_theme = <[e5 ~ a5 ~ b5 ~ c6 ~ b5 ~ a5 ~ e5 ~ ~ ~] [f5 ~ a5 ~ c6 ~ a5 ~ f5 ~ e5 ~ c5 ~ ~ ~] [e5 ~ g5 ~ c6 ~ g5 ~ e5 ~ d5 ~ c5 ~ d5 ~] [d5 ~ g5 ~ b5 ~ d6 ~ b5 ~ g5 ~ d5 ~ ~ ~]> let title_arp = <[a4 c5 e5 a5] [f4 a4 c5 f5] [c5 e5 g5 c6] [g4 b4 d5 g5]> let boss_riff = a4 a4 c5 a4 d#5 a4 d5 a4 c5 a4 b4 a4 g#4 a4 b4 ~ let coin_get = <[b5 e6 ~ ~ ~ ~ ~ ~] [~ ~ ~ ~ ~ ~ ~ ~]> let chip_kick = x ~ ~ ~ x ~ ~ ~ x ~ ~ ~ x ~ ~ ~ let chip_snare = ~ ~ ~ ~ x ~ ~ ~ ~ ~ ~ ~ x ~ x ~ let chip_hats = x x x x x x x x x x x x x x x x let boss_kick = x ~ x ~ x ~ x ~ x ~ x ~ x x x x section title 8 bars { deck B: arp title_arp inst=chiptune | harmony level_chords inst=square-lead vel=50..60 } section stage_one 16 bars { deck A: kick chip_kick | snare chip_snare | hihat chip_hats kit=drums-cr78 vel=40..60 deck B: melody hero_theme inst=square-lead | bass chip_bass inst=chiptune | arp coin_get inst=chiptune } section cave 8 bars { deck B: arp title_arp inst=chiptune | bass chip_bass inst=chiptune master: filter lp 1200 -> 3000 over 8 bars } section boss 16 bars { master: filter off deck A: kick boss_kick | snare chip_snare | hihat chip_hats kit=drums-cr78 vel=60..90 deck B: melody boss_riff inst=square-lead | harmony boss_chords inst=chiptune | bass boss_bass inst=chiptune at bar 15 for 2 bars: do trick on deck=A kind=stutter } section victory 16 bars { deck A: kick chip_kick | snare chip_snare | hihat chip_hats kit=drums-cr78 vel=50..70 deck B: melody hero_theme inst=chiptune | harmony level_chords inst=square-lead vel=50..65 | bass chip_bass inst=chiptune } section credits 8 bars { deck B: arp title_arp inst=chiptune | harmony level_chords inst=square-lead vel=40..50 master: filter lp 5000 -> 400 over 8 bars } arrange title stage_one cave stage_one boss victory credits end after credits