# Indexing Sample Packs problems

**URL:** <https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440>\
**Category:** Support, Help & Resources\
**Created:** [January 12, 2025, 3:06pm UTC](https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440 "2025-01-12T15:06:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Roberto](https://in-thread.sonic-pi.net/u/Roberto)\
**Post date:** [January 12, 2025, 3:06pm UTC](https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440/1 "2025-01-12T15:06:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Davids-Music-Lab](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/davids-music-lab/32/512_2.png) [@Davids-Music-Lab](https://in-thread.sonic-pi.net/u/Davids-Music-Lab)\
**Post date:** [January 12, 2025, 3:15pm UTC](https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440/2 "2025-01-12T15:15:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Roberto](https://in-thread.sonic-pi.net/u/Roberto)\
**Post date:** [January 12, 2025, 3:48pm UTC](https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440/3 "2025-01-12T15:48:37Z")

</div>

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

Bye  
Roberto

---

<div class="post-metadata">

**Author:** ![Roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Roberto](https://in-thread.sonic-pi.net/u/Roberto)\
**Post date:** [January 12, 2025, 5:28pm UTC](https://in-thread.sonic-pi.net/t/indexing-sample-packs-problems/9440/4 "2025-01-12T17:28:55Z")

</div>

It works! Great!

Thank you, Davids-Music-Lab  
Roberto
