Last active
June 4, 2016 14:59
-
-
Save AlexandreRangel/eb74f4110d6bf5e5880514f0066a21b6 to your computer and use it in GitHub Desktop.
Sonic Pi 2.10 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
use_synth :mod_fm | |
with_fx :normaliser, mix: 0.3 do | |
64.times do | |
play [:Fb1,:Gs2].choose, | |
attack: [2,4,8,12].choose, | |
release: [2,4,8,12,16,18].choose, | |
mod_range: [0,1,2,4,6,8,12,16].choose, | |
mod_phase: [0.25,0.5,1,2,4,8].choose, | |
mod_pulse_width: [0.1,0.2,0.25,0.5,0.75,0.99].choose, | |
mod_pulse_width_slide: [2,4,8].choose, | |
mod_wave: [0,1,2,3].choose, | |
detune: [rrand(-2,2),rrand(-16,16)].choose, | |
detune_slide: [2,4,8].choose, | |
pan: rrand(-0.7,0.7), | |
pan_slide: [2,4].choose, | |
amp: rrand(0.7,0.9), | |
amp_slide: [1,2,3,4].choose, | |
depth: [rrand(0,2,),rrand(0,16)].choose, | |
depth_slide: [2,4,8].choose, | |
divisor: [rrand(0,0.333),rrand(0,1),rrand(0,2)].choose, | |
divisor_slide: [2,4,8].choose | |
sleep [0.5,1,2,3,4,6,8,10,12].choose | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment