Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created January 26, 2015 07:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoder/c54ecfeffb1bcb2057e5 to your computer and use it in GitHub Desktop.
Save nicoder/c54ecfeffb1bcb2057e5 to your computer and use it in GitHub Desktop.
20150126_sonic_pi
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