Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created January 22, 2015 20:18
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/d2c054d711a896fc897d to your computer and use it in GitHub Desktop.
Save nicoder/d2c054d711a896fc897d to your computer and use it in GitHub Desktop.
20150122 sonic pi
live_loop :main do
sample :drum_cymbal_open, attack: 0.01, sustain: 0.3, release: 0.1 if one_in 4
sample :drum_cymbal_open, attack: 0.01, sustain: 0, release: 0.1
sample :bd_haus
sleep 0.5
end
live_loop :second do
sleep 3 * 0.5 + 0.25
with_fx :echo do
sample :drum_cymbal_open, rate: 1.5, attack: 0.01, sustain: 0, release: 0.1
end
sleep 0.25
end
live_loop :bass do
# sync :main
play 34, release: 0.12, amp: 2.5
sleep 0.125
end
live_loop :fourth do
with_fx :echo do
with_fx :echo do
play scale(:e4, :minor, num_octave: 2).choose, amp: rrand(0.05, 0.1)
end
end
sleep 0.25
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment