Drum Maschine in single line

Hmmm… you know…

@notinflight posted a nice little snippet in this post…

If you jazz it up a little and trigger it off the drums, you’ve
got the basics of a dance track…

use_bpm 120
cycle = (ring 2, 4, 6,8)

live_loop :drums do
  tick
  sample :bd_tek if 5[look%4] >0
  sample :bd_klub if 3[look%5] >0
  sample :bd_boom if cycle.look[look%4] >0
  sample :elec_cymbal, rate: 3 if 10[look%4] >0
  sleep 0.5
  
  
  live_loop :looper do
    sync :drums
    use_synth [:hoover, :blade, :piano].choose
    if rand() > 0.65 then
      with_fx :ixi_techno do
        with_fx :wobble do
          play :Gs3, attack: 0.25, sustain: 0.1, decay: 0.1, release: 0.1
          sleep 0.25
          play :Fs3, attack: 0.25, sustain: 0.1, decay: 0.1, release: 0.1
          sleep 0.25
          play :A3, attack: 0.25, sustain: 0.1, decay: 0.1, release: 0.1
          sleep 0.25
          play :B3, attack: 0.25, sustain: 0.1, decay: 0.1, release: 0.1
          sleep 0.5
        end
      end
    end
  end
end