Iterating Sonic Pi Samples = Cool track


#1
# PlaySamples.rb
# 6Dec2018
# Interate thru all the SonicPi sample groups and play each sample name
sg=sample_groups
i=0
while i<sg.length
  sn=sample_names(sg[i])
  j=0
  while j<sn.length
    puts j,sn[j]
    sample(sn[j])
    sleep 0.25
    j+=1
  end
  i+=1
end
puts "end of samples"