Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Created August 15, 2016 03:34
Show Gist options
  • Save AlexandreRangel/e0057f2b7f3b32aff1ffe3c701d1ffcb to your computer and use it in GitHub Desktop.
Save AlexandreRangel/e0057f2b7f3b32aff1ffe3c701d1ffcb to your computer and use it in GitHub Desktop.
Sonic Pi music code
# Alexandre rANGEL www.quasecinema.org
# orchestra of roses and petals on an orange sky v04
# 13-08-2016 Sonic Pi 2.11
use_bpm 126
wire = '/Users/rangel/Documents/SamplesPi/wire.wav'
load_sample wire
machine = '/Users/rangel/Documents/SamplesPi/answermachine2.wav'
load_sample machine
live_loop :wire1 do
with_fx :pitch_shift, pitch: rrand(0,0.2),
window_size: rrand(0.0001,0.5), mix: 0.6 do
sample wire, amp: 2.4; sleep 4
end
end
sleep 0.5
live_loop :wire2 do
sample wire, rate: 2, amp: 2; sleep 2
end
sleep 0.25
live_loop :wire3 do
sample wire, rate: 3, amp: 2; sleep 1
end
live_loop :wire4 do
with_fx :pitch_shift, pitch: rrand(-8,2), window_size: rrand(0.0001,0.5) do
sample wire, attack: 0.55, finish: 0.3,
rate: rrand(0.03,0.06)/[1,2].choose,
amp: rrand(31,33), pan: rrand(-0.3,0.3), pan_slide: [0.25,0.5,1,2].choose
end
sleep (ring 16,8,8,8,2,1,0.5)[tick/4]
end
sample machine
16.times do
sample :bd_haus, amp: 2; sleep 4
end
sample machine
live_loop :kick do
sample :bd_haus, amp: 2; sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment