Created
February 21, 2015 06:40
-
-
Save nicoder/ea56d338880fd4d49b33 to your computer and use it in GitHub Desktop.
2015_02_21 sonic pi
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
live_loop :main do | |
(spread 3, 8).each do |b| | |
sample :bd_tek if b | |
sleep 0.25 | |
end | |
end | |
live_loop :sec do | |
sync :main | |
use_synth :pretty_bell | |
(spread 5, 7).each do |b| | |
sample :bd_tek, rate: rrand(1.8, 2.2) if b | |
s = scale(:e3, :chinese) | |
a = rrand(0.2, 0.25) | |
r = rrand(0.18, 0.22) | |
2.times do | |
play s.choose, amp: a, release: r unless b | |
end | |
sleep 0.25 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment