I was writing some lines of code to iterate thru available samples & play them, just to hear them all in a row.
I’m facing a strange behaviour: even if “all_samples” variable contains the reference to all samples, the iteration seem to stop after the 4th sample. I’m running this on sonic pi portable, not sure if this matters or not.
use_debug false
all_samples = all_sample_names
puts all_samples
all_samples.each {
|key|
s = sample_duration(key)
puts key, s
sample key
sleep s
}