Skip to content

Instantly share code, notes, and snippets.

@AlexandreRangel
Last active January 4, 2016 03:31
Show Gist options
  • Save AlexandreRangel/aaee3ec47afd21c9f886 to your computer and use it in GitHub Desktop.
Save AlexandreRangel/aaee3ec47afd21c9f886 to your computer and use it in GitHub Desktop.
Sonic Pi song
# Alexandre rANGEL / www.quasecinema.org
# they tried to capture the light-v02
# 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
sample :bd_haus, amp: 2
sleep 2
sample :bd_haus, amp: 2
sleep 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment