Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Created July 11, 2016 00:10
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/3c4017ff9008781417d43158c1f07142 to your computer and use it in GitHub Desktop.
Save AlexandreRangel/3c4017ff9008781417d43158c1f07142 to your computer and use it in GitHub Desktop.
Sonic Pi music code
# Alexandre rANGEL / www.quasecinema.org
# robot confirmative v03
# Sonic Pi 2.11 / 10-July-2016
robot = '/Users/rangel/pisamples/robot_confirmative.flac'
# http://www.freesound.org/people/sfstorm/sounds/275577/
load_sample robot
live_loop :robot1 do
sample robot, rate: rrand(0.94,1.02)
sleep 4
end
live_loop :robot2 do
sleep 0.5
sample robot, rate: rrand(0.93,1.02) / 2
sleep 3.5
end
live_loop :robot3 do
sample robot, rate: rrand(0.92,1.0) / 4
sleep 8
end
live_loop :robot4 do
sample robot, rate: rrand(0.92,1.04) / 8,
amp: 3
sleep 24
end
live_loop :robot5 do
with_fx :pitch_shift, pitch: rrand(3.9,4.1),
window_size: rrand(0.001,0.002),
mix: 0.6 do
sample robot, rate: rrand(0.98,1.02) / 8,
pan: [-1,1].choose, pan_slide: 2,
amp: 3
end
sleep 24
end
live_loop :robot6 do
sleep 2
with_fx :pitch_shift, pitch: rrand(-3.9,-4.1),
window_size: rrand(0.004,0.007),
mix: 0.6 do
sample robot, rate: rrand(0.98,1.02) / 8,
pan: [-1,1].choose, pan_slide: [1,2].choose,
amp: 3
end
sleep 22
end
live_loop :robot7 do
with_fx :slicer, phase: 0.75 do
with_fx :pitch_shift,
pitch: rrand(-7.9,-8.1) * (ring 0.5,0.5,0.5,1).tick,
window_size: rrand(0.004,0.007),
mix: [0.4,0.8].choose do
with_fx :octaver, mix: rrand(0.6,0.9) do
with_fx :echo, phase: 0.25, mix: 0.8 do
sample robot, rate: rrand(0.94,1.02),
start: 0.2, finish: 0.24, amp: rrand(1.8,2.2) *0.4
end
end
end
end
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment