Last active
October 2, 2016 23:17
-
-
Save AlexandreRangel/5bfe11896afdfc00173ad59621f2bd0d to your computer and use it in GitHub Desktop.
Sonic Pi music code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# capitalist will make humanity interplanetary v01 | |
# Alexandre rANGEL www.quasecinema.org | |
# 2-Oct-2016 | |
# Sonic Pi 2.11 dev | |
use_bpm 133 | |
set_volume! 1 | |
with_fx :compressor, slope_below: 1.2, slope_above: 0.7, | |
threshold: 0.7, mix: 0.9 do | |
live_loop :drums1 do | |
sample :bd_klub, amp: (ring 2,3).tick | |
sleep 1 | |
end | |
sleep 4 | |
live_loop :drums2 do | |
x = tick | |
with_fx :tanh, krunch: rrand(1,5) do | |
sample :drum_cymbal_soft, amp: (ring 0.4,0.2)[x], | |
finish: (ring 0.1,0.1,0.1,0.2)[x] | |
end | |
sleep 1.0/3 | |
end | |
sleep 8 | |
live_loop :notes do | |
n = scale(:f3,:bartok).choose | |
with_fx :slicer, phase: [0.25,0.25,0.25,0.5,0.5,0.5,1].choose do | |
use_synth :fm | |
play n, depth: 4, divisor: 8, | |
attack: [2,2,2,4].choose, sustain: 7, amp: 0.5, | |
pan: [-0.3,0.3].choose, pan_slide: [1,2,4,6].choose | |
use_synth :tech_saws | |
play n, sustain: 2, amp: 0.4, | |
pan: [-0.5,0.5].choose, pan_slide: 1 | |
sleep 2 | |
play n, attack: 2, amp: 0.5, | |
pan: [-0.5,0.5].choose, pan_slide: 1 | |
sleep 6 | |
end | |
end | |
end #compressor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment