Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlexandreRangel/0a8d21dc104bf07f4ea9 to your computer and use it in GitHub Desktop.
Save AlexandreRangel/0a8d21dc104bf07f4ea9 to your computer and use it in GitHub Desktop.
Sonic Pi song
# Alexandre rANGEL / www.quasecinema.org
# they tried to capture the light-v01
# Sonic Pi 2.9 / 4-Jan-2016
set_volume! 0.5
use_bpm 120
live_loop :audio do
with_fx :compressor, amp: 1.5 do
with_fx :pitch_shift, pitch: [-8,-4,4,8,12].choose, window_size: rrand(0.001,0.1) do
with_fx :slicer, phase: (ring 0.25, 0.15, 0.25, 1.0/3)[tick] do
with_fx :compressor do
with_fx :distortion, distort: rrand(0.2,0.8) do
with_fx :flanger, phase: [0.1,0.25,1.0/3,0.5,1,2,4,8].choose do
with_fx :bitcrusher, bits: rrand_i(4,16) do
with_fx :echo, phase: [2,2,2,2,4,4,4,8,16,32].choose do
with_fx :echo, phase: [0.1,0.2,0.5,1,2].choose, mix: rrand(0.2,0.8) do
synth :sound_in, attack: 2, sustain: 0, release: 2, amp: 0.2
end
end
end
end
end
end
end
end
end
sleep 4
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment