Skip to content

Instantly share code, notes, and snippets.

@RomanIakovlev
Last active November 28, 2017 17:24
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 RomanIakovlev/d13aa8aba7cd0abbe3b31226d5eabaab to your computer and use it in GitHub Desktop.
Save RomanIakovlev/d13aa8aba7cd0abbe3b31226d5eabaab to your computer and use it in GitHub Desktop.
#My first Sonic Pi thingy!
live_loop :lead_bass do
with_fx :reverb, room: 1 do
with_fx :echo do
p = [1, -1].choose
sample :bass_thick_c, pan: p
sample :bd_boom, amp: 4, rate: 1, pan: -p
sample :loop_garzul, rate: [0.5, 1].choose
sleep 8
end
end
end
live_loop :drums do
with_fx :reverb, room: 1 do
r = [0.5, 0.5, 0.25, 0.25, 0.125, 0.125, 1, 1].choose
sample :drum_bass_hard
sample :bass_trance_c, finish: r
sleep r
end
end
live_loop :lead_synth do
with_fx :reverb, room: 1 do
with_fx :bitcrusher, bits: 2, mix: rand(0.3) do
n = [:e3, :e4, :g4, :g3, :a3, :a4].choose
p = [1, -1].choose
synth :square, note: n, pan: p, attack: rand(0.3), amp: 0.5
sleep 0.5
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment