Skip to content

Instantly share code, notes, and snippets.

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/fd8a58a46b79a2257f402c1de4ded9c5 to your computer and use it in GitHub Desktop.
Save AlexandreRangel/fd8a58a46b79a2257f402c1de4ded9c5 to your computer and use it in GitHub Desktop.
Sonic Pi music code
# we are perturbing a timeless universe v10
# Alexandre rANGEL
# www.quasecinema.org
# 28-Jan-2018 - Sonic Pi 3.01
#set_sched_ahead_time! 4
set_volume! 0.4
set_sched_ahead_time! 16
use_bpm 6
with_fx :sound_out, output: 5 do
with_fx :compressor,slope_below: 1.1, slope_above: 0.7, mix: 0.7 do
with_fx :flanger, wave: 4, phase: 0.5, mix: 0.4 do
with_fx :flanger, wave: 1, phase: 0.1+rand(0.15), mix: 0.4444 do
with_fx :wobble, phase: 0.04+rand(0.2), wave: 2, mix: 0.4 do
with_fx :flanger, wave: 3, phase: 0.25, mix: rrand(0.222,0.444) do
live_loop :notes do
with_fx :ring_mod, freq: 48+[4,8,16,32,64].choose, mix: 0.333 do
with_fx :pitch_shift, pitch: [-8,-4,-2,0].choose, pitch_slide: rrand(0.1,1),
window_size: rrand(0.0001,0.01), window_size_slide: rrand(0.1,1) do
with_fx :wobble, phase: [0.25,0.5,0.5,1,1,2].choose, cutoff_min: rrand(0,[50,100].choose),
cutoff_max: rrand(60,120) do
with_fx :ring_mod, freq: rrand(100,900), freq_slide: 0.05 do
with_fx :flanger, phase: rrand(0.01,0.6), mix: 0.6 +rand(0.2) do
use_synth :chipbass
note = scale([:a0,:a1].choose,:indian).choose
play chord(note, ['7+5','+5',:major].choose),
release: 1, amp: rrand(0.4,0.8), amp_slide: 0.1+rand(0.1)
end
end
end
end
sleep 2
end
end
end
end
end
end
end
end
with_fx :sound_out, output: 3 do
#with_fx :slicer, phase: 0.125 do
live_loop :drums do
sample :bd_gas,
start: rrand(0,0.1), finish: 0.86, amp: 1.3+rand(0.3), rate: rrand(-0.5,0.5)
#sample :ambi_soft_buzz, amp: 0.9 if (spread 3, 8).look
sample :bd_haus, rate: 0.93+rand(0.02),
amp: rrand(2.4,2.8) * 1.2 #if (spread 1, 4).look
sleep 0.05
#sleep 16 if one_in(1440)
end
#end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment