Skip to content

Instantly share code, notes, and snippets.

@nicoder
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoder/299b0eb8722139cfa971 to your computer and use it in GitHub Desktop.
Save nicoder/299b0eb8722139cfa971 to your computer and use it in GitHub Desktop.
20150128 sonic pi
live_loop :main do
play 60, amp: rand
play 65, amp: rand
play 72, amp: rand
with_fx :reverb do
sample :drum_cymbal_closed, amp: rrand(0.1, 0.3)
end
sleep 0.25
end
live_loop :sec do
play 28, amp: 10, release: 0.4
with_fx :echo do
sample :drum_bass_hard, amp: rrand(0.1, 0.2)
end
sleep 0.5
end
live_loop :third do
use_synth :mod_fm
play_pattern_timed [60, 63, 62, 58, 60], [4, 4, 2, 2, 4]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment