Skip to content

Instantly share code, notes, and snippets.

@xavriley
Created February 5, 2015 10: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 xavriley/9fc61888667e78e1b5cd to your computer and use it in GitHub Desktop.
Save xavriley/9fc61888667e78e1b5cd to your computer and use it in GitHub Desktop.
Avishai Cohen's Pinzin Kinzin in Sonic Pi 2.3-dev
use_bpm 130
use_synth :saw
use_synth_defaults release: 0.4
bassline = (knit :a3, 4,
:e3, 5,
:f3, 4,
:d3, 5,
:b2, 4,
:c3, 5,
:d3, 5)
live_loop :avishai do |c|
c ||= 0
play bassline[c] if distribute(7,32,2)[c]
play :a5 if (c % 4) == 0
sleep 0.25
c += 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment