Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hopbit/563a5e83abeebb802ef8fe0856660120 to your computer and use it in GitHub Desktop.
Save hopbit/563a5e83abeebb802ef8fe0856660120 to your computer and use it in GitHub Desktop.
Sonic Pi: Make Peach the President
# make peach the president
#
# drumloop based on
# http://www.ethanhein.com/wp/2013/my-collection-of-transcribed-rhythm-patterns/
use_bpm 95
drumloop = {
:drum_bass_hard => [0,7,8,14],
:drum_snare_hard => [4,12],
:drum_cymbal_closed => [0,2,4,6,7,8,12,14],
:drum_cymbal_open => [10]
}
live_loop :drums do
for i in 0..15
drumloop.each do |d,b|
sample d if b.include?i
end
sleep 0.25
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment