Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Last active May 26, 2017 11:01
Show Gist options
  • Save AlexandreRangel/bd80f36086a05afd1e10e5b9d03b1d2d to your computer and use it in GitHub Desktop.
Save AlexandreRangel/bd80f36086a05afd1e10e5b9d03b1d2d to your computer and use it in GitHub Desktop.
Sonic Pi Music code
# "1829 políticos brasileiros"
# Alexandre Rangel, 2017 / www.quasecinema.org
# Sonic Pi 2.12 alpha 4 / www.sonic-pi.net
use_bpm 60
live_loop :1829 do
myNote = scale(:e1,:zhi).choose
myNote = myNote -12 if one_in(12)
myNote = myNote -6 if one_in(18)
myNote = myNote -4 if one_in(24)
myNote = myNote -2 if one_in(32)
midi myNote
sleep 0.25 if one_in(9)
sleep 0.5
sleep 0.25 if one_in(7)
sleep 0.5 if one_in(14)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment