Skip to content

Instantly share code, notes, and snippets.

@wilvk
Created January 7, 2018 04:23
Show Gist options
  • Save wilvk/5dd8d107b76132bbb56e0a60a7c37456 to your computer and use it in GitHub Desktop.
Save wilvk/5dd8d107b76132bbb56e0a60a7c37456 to your computer and use it in GitHub Desktop.
Roland TR-808 Cowbell loop on Sonic Pi
use_synth :square
with_fx :lpf, cutoff: hz_to_midi(850), _slide_shape: 4 do
for x in 1..100
play hz_to_midi(540), decay: 0.3, sustain_level: 0.0
play hz_to_midi(800), decay: 0.3, sustain_level: 0.0
sleep 0.2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment