Created
January 22, 2015 20:18
-
-
Save nicoder/d2c054d711a896fc897d to your computer and use it in GitHub Desktop.
20150122 sonic pi
This file contains 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 | |
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