Only run this code when mom isn’t home.

##| based on https://musescore.com/user/133761/scores/449086
use_bpm 30
loop_times = 2

in_thread do
  use_synth :dsaw

  define :first_measure do
    play :e2, release: 0.1875
    sleep 0.1875  # 1/8+1/16
    play :b3, release: 0.0625
    sleep 0.0625  # 1/16
    5.times do
      play :e3, release: 0.125
      sleep 0.125  # 1/8
    end
    play :b2, release: 0.125
    sleep 0.125
  end

  loop_times.times do
    first_measure
    play_pattern_timed [:c3, :e3, :e3, :c3], [0.125], release: 0.125
    play :b2, release: 0.5
    sleep 0.5

    first_measure
    play_pattern_timed [:c3, :b2, :g2, :f2], [0.125], release: 0.125
    play :e2, release: 0.5
    sleep 0.5
  end
end

in_thread do
  use_synth :dpulse
  loop_times.times do
    3.times do
      sample :bd_sone
      sleep 0.25
      sample :sn_dolf
      sleep 0.25
    end
    sample :bd_sone
    sleep 0.5

    2.times do
      sample :bd_sone
      sleep 0.25
      sample :sn_dolf
      sleep 0.25
    end
    sample :sn_dolf
    sleep 0.125
    sample :sn_dolf
    sleep 0.0625
    3.times do
      sample :sn_dolf
      sleep 0.125
    end
    sleep 0.4375
  end
end

Okay move along, move along people, there’s nothing to see here!