I want to expand on it with lots more controls, but I need to know what it is and where it’s going first.
Elli…
use_bpm 120
tracker = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
#drum_sample = [:bd_ada, :bd_mehackit, :bd_haus, :bd_klub].ring
cutoff_ring = [90,90,110,100].ring
drum_sample = [:bd_ada].ring
n = (ring :r, :d2, :d3, :f3, :d1, :f2)
vol=2
bass=0
kick=1
hats=2
rim=3
background=4
windup=5
rewind=6
define :start_loop do |i|
tracker[i] = 1
end
define :once_only do |i|
tracker[i] = 1
end
define :stop_loop do |i|
tracker[i] = 0
end
define :stop_all do
(0..12).each do |i|
tracker[i] = 0
end
end
live_loop :bar do
sleep 1
end
live_loop :beats do
sync :bar
sleep 3.95
end
with_fx :level,amp: 0 do |v|
live_loop :drum do
if tracker[0] == 1 then
sync :bar
control v, amp: [2,1.5,2,2].ring.tick
sample :bd_ada,amp: vol / 3.0
else
control v, amp: 0
sleep 1
end
end
end
with_fx :level,amp: 0 do |v|
with_fx :lpf, cutoff: 110 do |c|
with_fx :echo, mix: 0.5, phase: 0.5, decay: 3 do |p|
with_fx :ixi_techno do
live_loop :kick do
if tracker[1] == 1 then
sync :beats
control v, amp: 2
control p, phase: [ 0.75, 0.75,0.75,[0.5,1.5].choose].ring.tick
control c, cutoff: cutoff_ring.ring.look
sleep 1
sample :sn_dolf, sustain: 0, release: 0.08, hpf: 80,amp: vol / 2.0
sleep 1
sleep 1
sample :sn_dolf, sustain: 0, release: 0.08, hpf: 80,amp: vol / 2.0
sleep 0.1
else
control v, amp: 0
sleep 1
end
end
end
end
end
end
start_loop bass
sleep 8
start_loop kick