Skip to content

Instantly share code, notes, and snippets.

@lapwat
Created March 5, 2016 18:26
Show Gist options
  • Save lapwat/a547273ff66654a6a41b to your computer and use it in GitHub Desktop.
Save lapwat/a547273ff66654a6a41b to your computer and use it in GitHub Desktop.
Darkdance
use_bpm 130
kick_v = 0
clock_v = 0
ha_v = 0
tb_v = 0
echoes_v = 0
voices_v = 0
sleep_voices = 1
kick_r = ring(1, 0, 1, 0, 1, 1, 0, 0)
snare_r = ring(0, 1)
live_loop :kick do
64.times do
sample :bd_haus, amp: kick_r.tick * kick_v, cutoff: 90
sleep 0.5
end
end
live_loop :ha do
phases = ring(8, 0.75)
2.times do
with_fx :slicer, phase: phases.tick do
sample :ambi_drone, beat_stretch: 4, amp: 3 * ha_v
end
sleep 16
end
end
live_loop :clock do
32.times do
clock_bs = ring(0.1, 0.2)
sample :sn_zome, amp: 3 * snare_r.tick(:s), cutoff: 100, beat_stretch: clock_bs.tick(:v), amp: clock_v
sleep 1
end
end
live_loop :echoes do
4.times do
sample :loop_industrial, beat_stretch: 4, finish: 0.5, amp: echoes_v
sleep 8
end
end
use_synth :tb303
live_loop :synth do
128.times do
play ring(:e1, :e2, :e3, :e4).tick, release: 1, attack: 0, decay: 0, sustain: 0, cutoff: 70, amp: tb_v
sleep 0.25
end
end
gamme = ring(:d4, :e4, :f4, :g4, :e4)
live_loop :voices do
use_synth :dark_ambience
2.times do
2.times do
play gamme.tick, release: 4, amp: 4 * voices_v
sleep 1 * sleep_voices
end
3.times do
play gamme.tick, release: 6, amp: 4 * voices_v
sleep 4
end
sleep 2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment