==== Sonic-Pi ==== Box live_loop :tb303 do synth :tb303, note: (octs :c1, 3).tick, release: 0.1, cutoff: rrand(70,120), amp: 1.5 sleep 0.125 end live_loop :bass, sync: :tb303 do density 1 do sample :bd_tek, cutoff: 110, amp: 2 sample :bd_klub, cutoff: 110, amp: 2 sleep 0.5 end end Second Version use_bpm 60 live_loop :sound do with_fx :reverb, room: 1, reps: 32, amp: 1 do synth :dpulse, note: (scale :c1, :major_pentatonic, num_octaves: 4).choose, release: 0.1, cutoff: rrand(90,110), amp: 2 synth :tb303, note: (scale :c1, :minor_pentatonic, num_octaves: 4).take(2).choose, release: 0.1, cutoff: rrand(90,110), amp: 1.5 sleep 0.125 end end live_loop :beats, sync: :sound do sample :loop_mika, lpf: 120, amp: 0.4 sleep 2 end live_loop :industry, sync: :sound do use_synth :tri use_synth_defaults attack: 0, sustain: 0.1, decay: 0.1, release: 0.1, amp: 0.4 sample :loop_industrial, beat_stretch: 4 sleep 4 end live_loop :bass, sync: :sound do d = (knit 1, 7, 4, 1).tick density d do sample :bd_klub, cutoff: 110, amp: 2 sleep 0.5 end end