Skip to content

Instantly share code, notes, and snippets.

@mribica
Created January 6, 2016 12:17
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 mribica/91db9484581cd70a91c1 to your computer and use it in GitHub Desktop.
Save mribica/91db9484581cd70a91c1 to your computer and use it in GitHub Desktop.
The Prodigy - Breathe in SonicPi
use_bpm 130
base = 70
live_loop :theme do
use_synth :prophet
with_fx :distortion do
"2--2--5-2-5-4--2-4--1--1--".split("").each do |n|
sleep 0.5 and next if n == "-"
play base + n.to_i, amp: 1, cutoff: 90, sustain: 0.5
end
end
end
live_loop :bass do
sync :theme
sample :bass_dnb_f, cutoff: 80, amp: 4, beat_duration: 4
sleep 4
end
live_loop :drums do
sync :theme
sample :loop_amen_full, amp: 2, beat_stretch: 16, cutoff: 130
sleep 16
end
live_loop :sword do
sync :theme
# Wu-Tang sword fight sample
#sample '~/wu-sword.wav', start: 0.4, finish: 0.6, amp: 2, beat_stretch: 18
sleep 4
end
@oskogstad
Copy link

"2-2-2-2-5-2-5-4-2-4-1-1-1-1-1-1-", suggestion for a bit closer to original 👯‍♂️

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