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/05eefc2dc67acf5a57519d0631a5563b to your computer and use it in GitHub Desktop.
Save AlexandreRangel/05eefc2dc67acf5a57519d0631a5563b to your computer and use it in GitHub Desktop.
Sonic Pi music code
# on the border of living and non living matter v03
# Alexandre rANGEL
# www.quasecinema.org
# 07-Jan-2018 - Sonic Pi 3.01
arrangement = true
set_sched_ahead_time! 4
use_bpm 136
with_fx :panslicer, phase: 5, smooth: 1 do
live_loop :texture do
with_fx :pitch_shift, pitch: rrand(8,12),
window_size: rrand(0.01,0.1),
window_size_slide: [2,4].choose do
sample :ambi_glass_rub, rate: rrand(0.9,1.1),
attack: 2, release: 2, amp: 3.3
sleep sample_duration :ambi_glass_rub, rate: 0.4
end
sample :ambi_glass_rub, amp: 1.6,
rate: rrand(0.9,1.1), attack: 4, release: 4
sleep sample_duration :ambi_glass_rub, rate: 0.4
end
end
sleep 24 if arrangement
live_loop :drums do
sample :bd_klub, amp: 1.4
sleep 2
sleep 3 if one_in(16)
end
sleep 1
sleep 8 if arrangement
live_loop :drums3 do
with_fx :echo, phase: rrand(0.05,0.2), reps: 2 do
sample :elec_blip, amp: 0.8, rate: [0.2,0.25].choose
sleep 2
sleep 2 if one_in(2)
end
end
sleep 1
sleep 8 if arrangement
with_fx :flanger, phase: 4, mix: 0.6 do
with_fx :slicer, phase: 3 do
with_fx :slicer do
live_loop :drums2 do
with_fx :echo, phase: [0.125,0.25].choose do
sample :tabla_ghe1, amp: 1.2,
start: rrand(0.0,0.15), finish: 0.25
sleep 1
end
end
end
end
end
sleep 4 if arrangement
with_fx :slicer, phase: 4, smooth_down: 2 do
with_fx :pitch_shift, pitch: -8, window_size: 0.02 do
with_fx :krush, res: 0.5, mix: 0.333 do
with_fx :flanger, phase: 2 do
live_loop :notes do
with_fx :vowel, voice: [1,2,3,4].choose,
vowel_sound: [1,2,3,4,5,5,5].choose, vowel_slide: [1,2].choose do
with_fx :wobble, phase: [0.125,0.25,0.5,1,2].choose do
with_fx :flanger, phase: rrand(0.1,4) do
use_synth [:fm,:growl].choose
note = scale([:c1,:f2].choose,:blues_minor).choose
play chord(note, ['7+5','+5',[:major,:minor].choose].choose),
depth: [0.5,1,2,4].choose, divisor: [0.25,0.5,1,4,8,16].choose,
attack: 1, release: [1,2,4,8].choose, amp: rrand(0,2.2)
end
end
sleep 2
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment