# Extra samles in folder

**URL:** <https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023>\
**Category:** \[P\] Patreon Support\
**Created:** [February 19, 2019, 8:16pm UTC](https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023 "2019-02-19T20:16:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keys](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@keys](https://in-thread.sonic-pi.net/u/keys)\
**Post date:** [February 19, 2019, 8:16pm UTC](https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023/1 "2019-02-19T20:16:44Z")

</div>

Hi  
If I add some extra samples to a folder within:  
C:\Program Files (x86)\Sonic Pi\etc\samples  
… is it then possible to call these directly?  
E.g if I add:  
_\test\samp1.wav_  
_\test\samp2.wav_

then in Sonic Pi:  
`sample :test\samp1`

---

<div class="post-metadata">

**Author:** ![keys](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@keys](https://in-thread.sonic-pi.net/u/keys)\
**Post date:** [February 21, 2019, 7:34am UTC](https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023/2 "2019-02-21T07:34:42Z")

</div>

Adding reply from atrip:

hi, is not possible to reply on your post. you can do it with DEFINE, theres my example

```
define :prueba do
“D:/Emanuel/Atrip/Set/Loops/resost/RE SOSTENIDO Project/Samples/Imported”
end
live_loop :loop do
sample 8
sleep 1
end

```

Thanks for the advise atrip

---

<div class="post-metadata">

**Author:** ![keys](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@keys](https://in-thread.sonic-pi.net/u/keys)\
**Post date:** [February 21, 2019, 7:39am UTC](https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023/3 "2019-02-21T07:39:37Z")

</div>

I tried the following but I could not get it to work. I did not quite get the SOSTENIDO part?

```
define :prueba do
  “C:/AUDIO_SAMPLES/808 SOSTENIDO Project/Samples/Imported”
end
live_loop :loop do
  sample 8
  sleep 1
end
```

---

<div class="post-metadata">

**Author:** ![Bubo](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/bubo/32/786_2.png) [@Bubo](https://in-thread.sonic-pi.net/u/Bubo)\
**Post date:** [February 21, 2019, 2:45pm UTC](https://in-thread.sonic-pi.net/t/extra-samles-in-folder/2023/4 "2019-02-21T14:45:34Z")

</div>

What about this?

`a = C:\Program Files (x86)\Sonic Pi\etc\samples\thefolderIjustAdded\`

and then play your samples like this

`sample a, 1, amp: 2 # a represents the path, 1 the file number in the folder.`

It should be working doing so. Try to read the documentation included in Sonic-Pi. Everything is explained about samples and using custom samples.

EDIT : I just realised that you are trying to achieve something different but I don’t quite get what you are looking for.
