Created
March 21, 2016 05:48
-
-
Save nicoder/89d9e4ac2a5aff0d593a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Sonic Pi Kata (wroc_love.rb 2016) | |
live_loop :d do | |
2.times do | |
sample :drum_bass_hard, pan: [-0.1, 0.1].choose if one_in 5 | |
sleep 0.25 | |
end | |
with_fx :echo, phase: 0.3, mix: 0.3 do | |
sample :drum_snare_hard if one_in 8 | |
end | |
sleep 0.5 | |
end | |
live_loop :mel do | |
# sync :d | |
with_fx :reverb, mix: 1 do | |
play scale(60, :major).choose, release: 12 | |
play 60, release: 2 if one_in 12 | |
play 67, release: 2 if one_in 12 | |
play 72, release: 2 | |
end | |
sleep 2 | |
end | |
live_loop :bass do | |
# sync :d | |
use_synth :fm | |
play (ring 48, 55, 48, 60).tick, release: 0.2, amp: 1.5 if one_in 7 | |
sleep 0.125 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment