# Problem with sample loading

**URL:** <https://forum.critterandguitari.com/t/problem-with-sample-loading/648>\
**Category:** Organelle\
**Created:** [October 19, 2016, 5:12pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648 "2016-10-19T17:12:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 19, 2016, 5:12pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/1 "2016-10-19T17:12:17Z")

</div>

Dear Organellas and Organellos and any other users that shall not be confined to any specific gender,

I am building a patch for Organelle that loads 16 mono 44.1Hz/16bit samples to 16 buffers. Each sample is played by a pad on a QuNeo, where the pad controls the loop start, loop length and transposition of sample playback. The loops are very short loops. Sort of a granular synthesis patch with one grain only!

The patch works perfectly well on the computer (PD Vanilla running on a Mac). The patch uses only a few abstractions that work fine in other Organelle patches. All samples load fine using loadbang. 16 samples load consecutively, not simultaneously. One pad controls a simple filtered noise synth - no sample involved.

I put the patch on the Organelle USB stick and give it a go. Only the pad controlling the noise synth works and I hear its sound. None of the samples work. As I do not use the Organelle with a screen, I cannot see the problem. Does anyone have any idea what the problem could be?

The samples are in a separate folder inside the patch folder. Should I place them simply in the main patch folder? I do not mean Organelle’s Patches folder, but the folder of my patch.

Thanks

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [October 19, 2016, 5:27pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/2 "2016-10-19T17:27:36Z")

</div>

The samples can be in their own folder, as long as you tell Pd the path to this folder when you load the samples. But if this is the way it is already working on the Mac, it should work the same on the Organelle, so something else could be wrong. Can you upload the patch to try?

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 19, 2016, 5:30pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/3 "2016-10-19T17:30:56Z")

</div>

Hi Owen,

I load the samples by sending the full path like this:

“Omnibus/sound/sample.wav”

Is there a better way to do this?

The patch is attached.

[omnibus.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/a41ea40493af81fa4f9be16d2ef00922aa0f8115.pd) (25.6 KB)

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [October 19, 2016, 6:08pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/4 "2016-10-19T18:08:55Z")

</div>

It looks like it is loading them correctly. You can omit the “Omnibus/” from the path and just use:

```
./sound/sample.wav

```

This way if you change the name of the patch folder, it will still work.

There are a bunch of objects it can’t load when I open it, are these all in the Omnibus folder?

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 19, 2016, 6:14pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/5 "2016-10-19T18:14:23Z")

</div>

Yes sorry I should have attached them too. They’re in this message.

nanokontrol.pd and quneo.pd could be useful for those who have these controllers. I have the earlier nanokontrol

[nanokontrol.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/f7060c81e8ba8d93eb889e44b997bfcbb08fae70.pd) (3.2 KB)  
[range.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/815a905025b67795f0e72c9aaa479153f68e4e55.pd) (674 Bytes)  
[variableDelay.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/142d5e46abcd52c6131aaa498f1c4201e34e05f8.pd) (1.4 KB)  
[padsample.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/041cdf39466560d9d1992a166230d9ccbf4a4360.pd) (2.6 KB)  
[pitch-delay.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/ac45f6560de943c447b406780eb0730be6ff711b.pd) (4.2 KB)  
[quneo.pd](https://canada1.discourse-cdn.com/flex035/uploads/critterandguitari/original/1X/7500ecb318046d870bbb07e4dacce7f453f21c2c.pd) (15.9 KB)

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [October 19, 2016, 7:28pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/6 "2016-10-19T19:28:02Z")

</div>

Did you rename omnibus.pd to main.pd ? I forgot to do this, so it didn’t load the first time.

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 19, 2016, 8:51pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/7 "2016-10-19T20:51:30Z")

</div>

Yes. The patch loads and the noise part works. The samples do not work.

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 23, 2016, 10:12am UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/8 "2016-10-23T10:12:51Z")

</div>

I found out what the problem was. The envelope table “crown” does not function: works on the computer, does not work on the organelle. Also the sample arrays must be named with $0 in the beginning. Otherwise the samples do not load.

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [October 24, 2016, 3:32pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/9 "2016-10-24T15:32:23Z")

</div>

oh interesting, That is a good thing to look out for. When Pd starts on the Organelle, it waits 100ms before switching audio on. So in the patch that generates crown, the loadbang fires before audio is enabled so nothing gets written to crown table. Same thing happens on my computer if I open the patch with audio off. You can add a delay after loadbang, or just set the crown to save with the patch (‘save contents’ under properties), and then you don’t need any of those objects…

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 25, 2016, 12:17am UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/10 "2016-10-25T00:17:29Z")

</div>

Ah ok, now I understand why almost none of the loadbangs work. Would have been good to know this beforehand… is this in the manual? I’ve spent many many hours to figure out what the problem was. ☹

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [October 26, 2016, 6:11pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/11 "2016-10-26T18:11:14Z")

</div>

It is not in the manual, but it should be. Thanks for pointing that out, we will add it.

---

<div class="post-metadata">

**Author:** ![korhanerel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/korhanerel/32/213_2.png) [@korhanerel](https://forum.critterandguitari.com/u/korhanerel)\
**Post date:** [October 26, 2016, 7:31pm UTC](https://forum.critterandguitari.com/t/problem-with-sample-loading/648/12 "2016-10-26T19:31:34Z")

</div>

Yes, please add all features in the manual. Otherwise the Organelle is a box of surprises (and not always pleasant ones). See my new post about MIDI program change message.
