My sampler works fine in mono but when i make it polyphonic by copying voices. pd gets slow and the audio starts sounding like 8 bit.
i also get thousands warnings like "warning: audio/50.wav-arrayright: multiply defined"
is this causing the audio problems in the patch.?
-
Sampler Debug Question
-
The "multiple defined" error message means that you have two arrays with the same name. This confuses [tabread] when it tries to lookup from a specific array.
Unless you really want to look at the waveform, I would recommend using [table] instead of array. It works exactly the same way, except without drawing the graph. Drawing is quite CPU intensive, so using [table] might give you the slack you need. Note that you can still see the waveform if you want by right clicking on [table] and selecting "open".
-
Is a Table Different From Putting it in a subpath?
so that if turn my arrays to tables, and i have 2 tables with the same name would the same problem happen -
@jjegede01 yes..... same problem. The advantage of tables is as @LiamG says..... but if you don't look at your arrays (actually put them on the screen) then that has the same good effect... You still need to solve the "multiply defined" problem.....
If you get really stuck then please post your patch!
David. -
I guess that putting an array in a subpatch is equivalent to using [table], so there's no need to do both.
Definitely don't give two tables or arrays the same name. Just name one "array-L" and the other "array-R", and then give each its own [tabread].
-
To explain further i have some pics
1
this is a pic of a voice in my patch.2
this is the array abstraction in each of those keys.
each array has a different name which coincides to the name of the wav file, unless the wav file is unavailable then it names the array the same..but to get to the issue it is when copy the voice for poliphony
must every array in each voice be different?in that sense i would have to rename arrays in each voice.
i have to give in my assignment next week and that will be impossible for me to accomplish.
can i give you my patch through rapidgator because i don't want it to be on here forever as it is my school project.