Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created April 4, 2016 02:43
Show Gist options
  • Save nicoder/4b7f79f64030dadd813a23f66a639499 to your computer and use it in GitHub Desktop.
Save nicoder/4b7f79f64030dadd813a23f66a639499 to your computer and use it in GitHub Desktop.
d = sample_duration :loop_industrial
live_loop :a do
sample :loop_industrial
sleep sample_duration :loop_industrial
end
live_loop :b do
#sync :a
# puts sample_duration :loop_industrial
use_synth :dsaw
play 60, cutoff: rrand(70, 120), release: 2
play (ring 67, 69).stretch(4).tick, cutoff: rrand(70, 120), release: 2
sleep d
end
live_loop :c do
sync :a
use_synth :mod_fm
2.times do
play 48, release: 0.3, pitch: 0, mod_range: -12, amp: 2
sleep 0.25
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment