Created
December 20, 2015 22:31
-
-
Save xaviergodart/4ac9705cf2a5a716f008 to your computer and use it in GitHub Desktop.
First sonic pi attempt.
This file contains 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
with_fx :reverb, mix: 0.9, room: 0.9, damp: 0.9 do | |
with_fx :echo, phase: 3, decay: 3 do | |
live_loop :soft_drone do | |
#stop | |
use_synth :growl | |
play :D3, attack: 4, sustain: 2, release: 4, amp: 0.2 | |
sleep 12 | |
end | |
end | |
live_loop :ding do | |
#stop | |
use_synth :pretty_bell | |
play (scale :D6, :minor).choose, release: 4, amp: 0.01, pan: rrand(-1, 1) | |
sleep rrand_i(4, 8) | |
end | |
live_loop :arpeg do | |
#stop | |
use_synth :fm | |
play (scale :D4, :minor_pentatonic).choose, amp: 0.1, release: 0.125, pan: -1 | |
sleep 0.250 | |
end | |
live_loop :noise do | |
#stop | |
use_synth :noise | |
play :D2, attack: 2, sustain: 2, amp: 0.01 | |
sleep 2 | |
end | |
live_loop :big_drone do | |
#stop | |
use_synth :dark_ambience | |
play (ring :A3, :A3, :G3, :G3).tick, attack: 4, sustain: 4, release: 4, amp: 0.2 | |
sleep 10 | |
end | |
live_loop :phat do | |
with_fx :distortion do |d| | |
with_fx :lpf do |lpg| | |
#stop | |
control d, mix: 1, distort: 0.3 | |
control lpg, cutoff: 90 | |
use_synth :prophet | |
play (ring :D2, :D2, :C2).tick, amp: 0.1, release: 12 | |
sleep 8 | |
end | |
end | |
end | |
live_loop :boom do | |
#stop | |
sample :drum_tom_lo_hard, rate: rrand(0.02, 0.06), amp: 6, pan: rrand(-1, 1) | |
sleep rrand(20, 35) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment