Created
January 26, 2015 07:04
-
-
Save nicoder/c54ecfeffb1bcb2057e5 to your computer and use it in GitHub Desktop.
20150126_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
use_bpm 52 | |
live_loop :bass do | |
[:d2, :a2, :b2, :g2].each do |n| | |
8.times do | |
# with_fx :rlpf do | |
play n, release: 0.2 | |
# end | |
sleep 0.25 | |
end | |
end | |
end | |
live_loop :kick do | |
# sync :bass | |
sample :drum_bass_hard | |
with_fx :slicer do | |
sample :drum_bass_hard | |
end | |
sleep 0.5 | |
end | |
live_loop :mel do | |
# sync :bass | |
use_synth [:mod_beep, :mod_dsaw, :mod_fm, :mod_pulse, :mod_saw, :mod_sine, :modd_tri].choose | |
rrand_i(1, 4).times do | |
play chord(:d5, :major).choose, amp: 0.1 | |
end if one_in 2 | |
sleep 0.25 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment