Skip to content

Instantly share code, notes, and snippets.

@mattsouth
Last active January 16, 2021 02:33
Show Gist options
  • Save mattsouth/77e5cad0c2573861d822 to your computer and use it in GitHub Desktop.
Save mattsouth/77e5cad0c2573861d822 to your computer and use it in GitHub Desktop.
How to listen to all default samples in sonic-pi
# All samples
sample_groups().each do |grp|
print "\n###### :#{grp} ######\n"
sample_names(grp).each do |smp|
print smp
sample smp
sleep sample_duration smp
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment