Indexing Sample Packs problems

Hello everyone.

I do not understand how to handle sample packs. Following the instructions I type:

sample “/Users/Roberto/Desktop/SonicPiSamples/”, 0

or

samps = “/Users/Roberto/Desktop/SonicPiSamples/”
sample samps, “/Users/Roberto/Desktop/SonicPiSamples/”, 0

The code does not sound.
The result is:

{run: 42, time: 0.0}
└─ sample [‘/Users/Roberto/Desktop/SonicPiSamples/’, 0].
- no match found, skipping.

There are two mp3 in the folder. If I replace 0 with 1 the result is the same.

Where am I going wrong?

I’m using MacOS Sequoia 15.2 and Sonic Pi v4.5.1.

Thank you for your help!

Bye
Roberto

Ma

Mp3 is probably not supported, try .wav or .ogg

Thank you. Mp3 works with the command sample + “file_path”. Maybe variables not? I will try!

Bye
Roberto

It works! Great!

Thank you, Davids-Music-Lab
Roberto