Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 2, 2015 05:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoder/5bfb168edc485c9e0689 to your computer and use it in GitHub Desktop.
Save nicoder/5bfb168edc485c9e0689 to your computer and use it in GitHub Desktop.
20150202 sonic pi (start of the bass line of queen's 'another one bites the dust')
use_bpm 90
live_loop :bass do
use_synth :fm
use_synth_defaults release: 0.2
play_pattern_timed [45, 43], [0.25]
play_pattern_timed [40, 40], [1]
play_pattern_timed [40], [1.75]
play_pattern_timed [40, 40, 40, 43, 40, 45],
[0.25, 0.5, 0.5, 0.5, 0.25, 1.75]
end
live_loop :drums do
sleep 0.5
sample :drum_cymbal_closed, amp: 0.5, rate: 1
sleep 0.5
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment