Skip to content

Instantly share code, notes, and snippets.

@mbie
Created September 19, 2016 21:54
Show Gist options
  • Select an option

  • Save mbie/62184e065b29801f6f46712cbea98036 to your computer and use it in GitHub Desktop.

Select an option

Save mbie/62184e065b29801f6f46712cbea98036 to your computer and use it in GitHub Desktop.
RailsGirls Rzeszów 2016 - SonicPi snippet
live_loop :beat do
index = tick
4.times do
sample :bd_klub, cutoff: 120
sleep 0.5
end
sample :drum_cymbal_soft if (index % 2).zero?
end
with_fx :distortion do
live_loop :riff do
use_synth :piano
riff = (ring :d, :r, :r, :a, :f5, :r, :a, :r)
play riff.tick - 12 , amp: 0.5, cutoff: 80
sleep 0.25
end
end
live_loop :foo do
tick
synth :zawa, amp: 0.7, wave: 1, phase: 0.25, release: 4, cutoff: (line 60, 120, steps: 6).look, note: [:a1, :e1, 12].sample
sleep 2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment