Skip to content

Instantly share code, notes, and snippets.

@jeremywen
Created April 16, 2016 02:02
Show Gist options
  • Save jeremywen/c86d0d273e835a3d40e7dbee131cf0c7 to your computer and use it in GitHub Desktop.
Save jeremywen/c86d0d273e835a3d40e7dbee131cf0c7 to your computer and use it in GitHub Desktop.
use_bpm 140
#kick
live_loop :a do
s = (ring 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.75).tick(:t1)
k = (ring :bd_ada, :bd_haus, :bd_zum).tick(:t2)
sample k, start: 0.06, finish: 1, sustain_level:0, decay:0.2, amp: 3, rate: 0.9
sleep 1 #1
end
#snare
live_loop :b, sync: :a do
t = tick
sample :sn_dub, start: 0, finish: 1, sustain_level:0, decay: (t!=0 && t%8==0)? 0.5 : 0.05, amp: 3, rate: 1
sleep 2 #2
end
#bloop
live_loop :c, sync: :a do
with_fx :panslicer, phase: 1.1, wave:3 do
with_fx :hpf, cutoff:20 do
sleep 0.5
t = 2
t.times do
n = scale(:e, :minor_pentatonic).tick(:t1)-[0,12,24].choose
synth :chipbass, note: n, sustain_level:0, decay:0.3, attack:0
sleep 0.5 / t
end
end
end
end
#303
live_loop :d, sync: :a do
##| with_fx :panslicer, phase: 0.5, wave:3, pan_min: -0.25, pan_max: 0.25 do
##| with_fx :echo, phase:0.75, max_phase:4 do
with_fx :krush do
rep = [1.0,2.0,4.0].choose
rep.times do
n = scale(:e, :minor_pentatonic).tick(:t1)-[0,12,24].choose
##| synth :tb303, note: n, cutoff_attack:[0,0.1].choose, cutoff: rand_i(100)+20, resonance:1000, sustain_level:0, decay:0.3, attack:0
sleep 1.0/rep
end
end
##| end
##| end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment