Skip to content

Instantly share code, notes, and snippets.

@Freemoth
Created January 13, 2017 02:51
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 Freemoth/1bc779614a27faf8312c66844b66b93f to your computer and use it in GitHub Desktop.
Save Freemoth/1bc779614a27faf8312c66844b66b93f to your computer and use it in GitHub Desktop.
Cloud Nigh
# cloud_nigh.txt ## May 7, 2016
# sonic(K) ## SP v. 2.7
use_bpm 10
live_loop :drops do
with_fx :ring_mod, freq: rrand(25, 32), mix: rrand(0.3, 0.5), \
amp: 0.5, mod_amp: 0.5 do
sample :ambi_piano, rate: rrand(1, 1.5), amp: rrand(0.5, 1), \
pan: [-0.5, 0.5, 0.1, -0.2].choose if one_in(3)
end
sample :bd_boom, rate: rrand(0.9, 1), pan: [-0.2, -0.1].choose if one_in(3)
sleep 1
end
live_loop :cloudy do
with_fx :wobble, invert_wave: [0, 1].choose, phase: rrand(0.5, 0.8), \
wave: [2, 3].choose, phase_offset: rrand(0.2, 0.3), \
cutoff_min: 50, cutoff_max: rrand(80, 90) do
sample :ambi_haunted_hum, amp: 0.3, pan: rrand(-0.25, 0.05) if one_in(2)
sample :ambi_haunted_hum, amp: 0.4, pan: rrand(-0.05, 0.35) if one_in(3)
sample :ambi_glass_hum, amp: 0.6, pan: rrand(-0.25, 0.25), \
rate: rrand(-0.5, -0.4)
sample :ambi_glass_hum, amp: 0.5, pan: rrand(-0.4, 0.5) if one_in(2)
if one_in(2)
puts "sleep 2"
with_fx :echo, phase: 0.3333333, decay: 1 do
sample [:perc_bell, :drum_tom_mid_soft].choose, \
amp: rrand(0.05, 0.15), rate: rrand(0.8, 0.85)
end
sleep 2
else
puts "sleep 1.5"
with_fx :reverb, room: rrand(0.5, 0.8), mix: 0.8 do
sample [:drum_splash_soft, :drum_cymbal_soft].choose, \
amp: rrand(0.33, 0.5), rate: rrand(-0.5, -0.6), \
pan: rrand(-0.13, 0.3)
end
sleep 1.5
end
end
end
@Freemoth
Copy link
Author

Code for "Cloud Nigh" by sonic(K). Audio is here https://soundcloud.com/freemoth/cloud-nigh-sonick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment