code:
use_bpm 240
use_random_seed 111
chrd = (knit :e5, 3, :d6, 1)
dnb = true
f_mix = 0.6
with_fx :distortion, distort: 0.7, mix: 0.9 do
live_loop :kick do
sample :bd_808, amp: 2.2, finish: 0.5, on: dnb
sample :bd_gas, amp: 0.9, finish: 0.5
sleep 6
end
end
with_fx :reverb, room: 0.6, mix: 0.35 do
live_loop :tock do
sleep 3
sample :drum_snare_hard, amp: 0.6, beat_stretch: 1.25, on: dnb
sample :elec_bong, amp: (ring 0.2, 0.7).tick, beat_stretch: 0.5
sleep 3
end
with_fx :distortion, distort: 0.7 do
live_loop :ghost do
45.times do
sleep 0.5
sample :drum_snare_hard, amp: rand(0.2), beat_stretch: 1.3, on: (one_in 3) & dnb
sleep 0.5
end
6.times do
sample :drum_snare_hard, amp: 0.15, beat_stretch: 1.25, on: dnb
sleep 0.5
end
end
live_loop :ghostb do
sleep 3
8.times do
sleep 1
sample :bd_gas, amp: rand(1), beat_stretch: 1.4, finish: 0.5, on: (one_in 3) & dnb
end
sleep 1
end
with_fx :slicer, invert_wave: 1, smooth_up: 1, pulse_width: 0.1, phase: 3 do |s|
live_loop :tick do
12.times do |i|
if dnb then
sample :drum_cymbal_closed, amp: 0.6-(tick%3)*0.2
sample :drum_cymbal_pedal, amp: 0.4, on: i==11
end
sleep 1
end
end
live_loop :spsh do
sleep 48
cue :int
sample :drum_splash_hard, amp: 0.5, beat_stretch: 9, on: dnb
end
with_fx :flanger, delay: 60, delay_slide: 2, wave: 2, max_delay: 120, depth: -60, phase: 24, feedback: 0.75, mix: f_mix, amp: 0.7 do |f|
with_fx :wobble, phase: 6, wave: 2, cutoff_max: 100, cutoff_min: 60, res: 0.5, amp: 0.7 do |w|
live_loop :weebul, sync: :int do
nn = chrd.tick
24.times do |i|
use_synth :pretty_bell
if (one_in 5)
n = (chord nn-12, :minor7, num_octaves: 2).pick
else
n = nn
end
m = play n+rrand(-0.1,0.1), amp: 0.17-((i+1)%3)*0.045, note_slide: 0.6, release: 0.5, pan: rrand(-1,1)
control m, note: n+rrand(-1,1)
sleep 0.5
end
end
end
with_fx :bitcrusher, bits: 8 do
live_loop :tcholo, sync: :int do
sleep 48
use_synth :blade
use_synth_defaults amp: 0.5, vibrato_delay: 0, vibrato_rate: 9, vibrato_depth: 0.33, vibrato_onset: 1
8.times do
n = chrd.tick(:tc) + 12
play n, attack: 1, release: 3
sleep 3
s = (scale n, :blues_minor)
3.times do
play s.tick(step:-1), release: 3, on: (one_in 2)
sleep 1
play s.tick(:f, step:-2), release: 2, on: (one_in 2)
sleep 1
play s.tick(:g, step:1), release: 1, on: (one_in 2)
sleep 1
end
end
dnb = false
play chrd.first+12, release: 3
sample :drum_splash_soft, amp: 0.4
n = play :e1, attack: 86, note_slide: 83, amp: 0.15
control n, note: :e7
14.times do
control f, delay: rrand_i(50, 300)
sleep 6
end
control f, delay: 1
control n, note_slide: 3, note: :e0
sleep 3
control f, mix: 0
sleep 6
control f, delay: 60, mix: f_mix
dnb = true
sleep 3
end
end
end
live_loop :chair do
use_synth :prophet
use_synth_defaults attack: 6, sustain: 6, release: 0, amp: 0.04
n = (chrd-24).tick
8.times do |i|
play (chord n, :minor7, num_octaves: 2)[i], pan: ((i%2)*2-1)*i/8.0, on: dnb
end
sleep 12
end
live_loop :threekb, sync: :int do
use_synth :tb303
n = play :e0, on: dnb, wave: 2, attack: 2, decay: 1, sustain_level: 0.6, sustain: 8, release: 1, res: rrand(0.5,0.9), cutoff: rrand_i(30,130), cutoff_slide: 0.9, amp_slide: 0.2, note_slide: 0.9
control n, note: (chrd-48).tick(:t)
sleep 3
control n, note: :e0, amp: 0
9.times do |i|
control n, note: (chord :e1, :minor7).tick(:c), amp: 0.8-(i%3)*0.3, cutoff: rrand_i(30,130), on: (one_in 2)
sleep 0.6
control n, amp: 0
sleep 0.4
end
control n, note: :e0
end
end
end
end