Skip to content

Instantly share code, notes, and snippets.

@hopbit
Created November 30, 2015 22:00
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 hopbit/bc53500c9ba486a9c5ae to your computer and use it in GitHub Desktop.
Save hopbit/bc53500c9ba486a9c5ae to your computer and use it in GitHub Desktop.
play all sonic pi samples
format = "there are %d samples" % all_sample_names.size
puts format
for voicenumber in 0..all_sample_names.size-1 do
puts voicenumber
voice = all_sample_names[voicenumber]
sample voice
sleep sample_duration voice
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment