Saving External Samples into Variables

hi,

can you try this code after according changes to your wav file path

Edit : better answer :slight_smile:

a = "D:/audio/mesSamples/drumbeats/acoustic_2_3.wav"
b = "D:/audio/mesSamples/drumbeats/breakbeats_2_1.wav"

s = (ring a, b)
a = s.to_a

s.length.times do
  current = s.tick
  sample current
  sleep sample_duration(current)
end
sample a[1]

and tell me if it’s ok for you.

edit : have a look at this post Sample name stored in a variable - #5 by robin.newman