Skip to content

Instantly share code, notes, and snippets.

@kersulis
Created February 4, 2017 06:32
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 kersulis/a5f05253461812631a49f8ae8571b348 to your computer and use it in GitHub Desktop.
Save kersulis/a5f05253461812631a49f8ae8571b348 to your computer and use it in GitHub Desktop.
# Sonic Pi v2.10
use_bpm 130
notes = (ring :b3, :fs3, :g3, :c4)
notes_sliced = (ring :b3, :as3, :a3, :as3)
define :long do
4.times do
with_fx :bitcrusher, mix: 0.2 do
with_synth :hoover do
use_synth_defaults attack: 0.2, release: 1.1, amp: 2
p = play notes.tick, note_slide: 0.5
sleep 0.5
control p, note: notes.look - 12
sleep 0.5
end
end
end
end
define :short do
4.times do
tick
with_fx :bitcrusher, mix: 0.3 do
with_synth :hoover do
use_synth_defaults attack: 0.2, release: 0.12, amp: 2
play notes.look
sleep 0.5
play notes.look
sleep 0.5
end
end
end
end
define :sliced do
4.times do
tick
with_fx :bitcrusher, mix: 0.3 do
with_synth :hoover do
use_synth_defaults amp: 1, release: 0.15
4.times do
play notes_sliced.look
sleep 0.25
end
end
end
end
end
define :drums do
in_thread do
8.times do
with_fx :lpf, cutoff: 110 do
sample :bd_haus
sleep 1
sample :bd_haus
sample :sn_zome
sleep 1
end
end
end
end
drums
long
short
long
sliced
@jkloeppel9
Copy link

What are these five lines for:
Drums
Long
Short
Long
Sliced

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