Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created March 20, 2020 18:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarcieri/b3692d999e77f306b1b2fee565ac8426 to your computer and use it in GitHub Desktop.
Save tarcieri/b3692d999e77f306b1b2fee565ac8426 to your computer and use it in GitHub Desktop.
Sonic Pi Acid House
use_bpm 128
live_loop :kick do
sample :bd_808, amp: 10
sleep 1
end
live_loop :snare do
sleep 1
sample :drum_snare_soft
sleep 2
sample :drum_snare_soft
sleep 1
end
live_loop :hats do
sleep 0.5
sample :drum_cymbal_closed
end
live_loop :bass do
use_synth :tb303
notes = [:G1, :G1, :G2, :G1, :G2, :G1, :G2, :G2, :Gs2]
durations = [0.5,0.5,0.5,0.25,0.5,0.25,0.5,0.5,0.5]
50.step(120, 10) do |cutoff|
with_fx :reverb, room: (cutoff / 500.0) do
with_fx :slicer, phase: 0.25, amp: 1.5 do
notes.zip(durations) do |note, duration|
play note, cutoff: cutoff, res: 0.8, wave: 0, release: (cutoff / 180.0)
sleep duration
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment