Skip to content

Instantly share code, notes, and snippets.

@nischalshrestha
Created April 27, 2020 06:53
Show Gist options
  • Save nischalshrestha/7211aed08d27acc21836f9b100833d4f to your computer and use it in GitHub Desktop.
Save nischalshrestha/7211aed08d27acc21836f9b100833d4f to your computer and use it in GitHub Desktop.
Sonic Pi: Dark ambient
# ambient 0
live_loop :slow_drone do
with_fx :bitcrusher, cutoff: 40 do
with_fx :gverb, room: 40 do
with_fx :echo, decay: 20 do
with_fx :echo, decay: 1, mix: 1 do
with_synth :saw do
play (scale :c2, :major_pentatonic).choose,
amp: 1,
attack: 0.5
end
end
end
end
end
sleep rrand_i(2, 4)
end
live_loop :fast_drone do
amp = 1
with_fx :bitcrusher, cutoff: 70 do
with_fx :gverb, room: 10 do
with_fx :echo, decay: 3 do
with_fx :echo, decay: 1, mix: 1 do
with_synth :square do
play (scale :c2, :major_pentatonic).choose,
amp: amp,
attack: 0.6,
release: 0.25,
sustain: 0.5
end
end
end
end
end
sleep rrand(0.5, 2)
end
live_loop :slow_metro do
sleep 0.5
end
live_loop :dark do
sync :slow_metro
amp = 3
with_fx :bitcrusher, cutoff: 90 do
with_fx :echo, decay: 10, mix: 1 do
with_fx :reverb, room: 1, damp: 0.8 do
sample :ambi_glass_rub,
rate: 0.5,
amp: amp,
attack: 0.6,
decay: 0.5,
release: 0.5,
sustain: 1.5
end
end
end
sleep 4
end
live_loop :fast_metro do
sleep 0.125
end
live_loop :plucking do
sync :fast_metro
use_synth :pluck
amp = 1
with_fx :bitcrusher, cutoff: 90 do
with_fx :ping_pong, phase: 0.5 do
with_fx :echo, decay: 2.5 do
with_fx :echo, decay: 2 do
with_fx :echo, decay: 1.5 do
with_fx :echo, decay: 1 do
with_fx :tremolo, phase: 0.2 do
play (scale :c3, :major_pentatonic, num_octaves: 3).choose,
amp: amp,
attack: 0.05,
decay: 0.25,
release: 0.05,
sustain: 0.05
end
end
end
end
end
end
end
sleep 2
end
@ristmatt
Copy link

ristmatt commented May 5, 2020

Had a play with this - awesome stuff!! Thanks for sharing

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