Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Created November 15, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexandreRangel/5b1ba465b6c1ce1b618c2c0c26f4d17e to your computer and use it in GitHub Desktop.
Save AlexandreRangel/5b1ba465b6c1ce1b618c2c0c26f4d17e to your computer and use it in GitHub Desktop.
Sonic Pi music code
# Alexandre rANGEL 'oh euclides' v1
# www.quasecinema.org
# 5-Nov-2016
# Sonic Pi 2.11
live_loop :euclid_beat do
sample :tabla_tas3, amp: 1.5 if (spread 3, 8).tick
sample :elec_blip2, amp: 0.9 if (spread 7, (ring 11,12,22)[look/16]).look
sample :bd_fat, amp: 7 if (spread 1, 4).look
sleep 0.125
end
sleep 4
live_loop :notas do
use_synth :pluck
play scale([:e3,:c6].choose,:chinese).choose, attack: 0.1, sustain: 0.1, release: 0.1
sleep 0.125
end
sleep 8
live_loop :notas do
use_synth :blade
play scale(:e3,:spanish).choose, attack: 0.1, sustain: 0.1, release: 2
sleep 0.125 * 8
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment