Created
January 9, 2015 05:02
-
-
Save nicoder/b5a90ff91833d5705932 to your computer and use it in GitHub Desktop.
20150109 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
spacing = 8 | |
live_loop :kick do | |
with_fx :echo do | |
sample :bd_tek, pan: -0.1 | |
end | |
sleep 1 | |
end | |
sleep spacing | |
live_loop :snare do | |
# sync :kick | |
sleep 0.5 | |
with_fx :slicer do | |
sample :drum_snare_hard, amp: 3 | |
end | |
sleep 0.5 | |
end | |
sleep spacing | |
live_loop :hihat do | |
# sync :kick | |
sample :drum_cymbal_closed, pan: 0.3, amp: [0.5, 1.5, 2.5].choose, rate: rrand(1, 5) | |
sleep 0.125 | |
end | |
sleep spacing | |
live_loop :bass do | |
#sync :kick | |
sample :bass_dnb_f, rate: (1 * (12 + 0) / 12.0), amp: 0.5 | |
sleep 1 | |
end | |
sleep spacing | |
live_loop :synth2 do | |
# sync :kick | |
with_fx :wobble, wave: 0 do | |
with_fx :reverb do | |
play chord(:e3, 'm9+5'), release: 8, cutoff: 90 | |
end | |
end | |
sleep 8 | |
end | |
sleep spacing | |
live_loop :notes do | |
# sync :kick | |
use_synth :tri | |
with_fx :distortion, distort: 0.99, pre_amp: 0.75, mix: 0.6, amp: 0.1 do | |
play scale(:e5, :aeolian, num_octaves: 3).choose, amp: rrand(0.15, 0.25) unless one_in(13) | |
end | |
sleep 0.25 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment