Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 21, 2015 06:40
Show Gist options
  • Save nicoder/ea56d338880fd4d49b33 to your computer and use it in GitHub Desktop.
Save nicoder/ea56d338880fd4d49b33 to your computer and use it in GitHub Desktop.
2015_02_21 sonic pi
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