Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created November 30, 2016 04:46
Show Gist options
  • Save nicoder/184c346b3437a2faa753eb7002ce95e7 to your computer and use it in GitHub Desktop.
Save nicoder/184c346b3437a2faa753eb7002ce95e7 to your computer and use it in GitHub Desktop.
s = :loop_tabla
t = (sample_duration s) / 16.0
live_loop :l1 do
sample s, amp: 4
sleep sample_duration s
end
live_loop :l2 do
#sync :l1
use_synth :fm
play chord(:e2, :minor, num_octaves: 2).choose, release: 2 * t
sleep [0.5 * t, t, 2 * t].choose
end
live_loop :l3 do
#sync :l2
use_synth :hollow
play chord(:e4, :minor), amp: 0.5, release: 4 * t if one_in 3
play chord(:b4, :minor), amp: 0.6, release: 4 * t if one_in 4
sleep 3 * t
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment