Created
November 30, 2016 04:46
-
-
Save nicoder/184c346b3437a2faa753eb7002ce95e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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