<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[declare -path with clone objects]]></title><description><![CDATA[<p>Hi there,</p>
<p>it seems that a file path declared with the declare object is not forwarded to cloned object. I created a minimal example, see attached &quot;main.pd&quot; and &quot;clonedobject.pd&quot;. The folder &quot;Subfolder&quot; is located in the root directory. It is declared, but test.wav is not found if it is located there. Any ideas for a workaround? I'm using Purr-Data 2.19.3.</p>
<p>Thank you in advance!<br />
<a href="/uploads/files/1703785450870-main.pd">main.pd</a><br />
<a href="/uploads/files/1703785456357-clonedobject.pd">clonedobject.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:01:27 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14563.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Dec 2023 17:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to declare -path with clone objects on Thu, 28 Dec 2023 17:45:00 GMT]]></title><description><![CDATA[<p>Hi there,</p>
<p>it seems that a file path declared with the declare object is not forwarded to cloned object. I created a minimal example, see attached &quot;main.pd&quot; and &quot;clonedobject.pd&quot;. The folder &quot;Subfolder&quot; is located in the root directory. It is declared, but test.wav is not found if it is located there. Any ideas for a workaround? I'm using Purr-Data 2.19.3.</p>
<p>Thank you in advance!<br />
<a href="/uploads/files/1703785450870-main.pd">main.pd</a><br />
<a href="/uploads/files/1703785456357-clonedobject.pd">clonedobject.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects</guid><dc:creator><![CDATA[xaverius]]></dc:creator><pubDate>Thu, 28 Dec 2023 17:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to declare -path with clone objects on Thu, 28 Dec 2023 23:05:06 GMT]]></title><description><![CDATA[<p>In vanilla, pdL2Ork and plugdata I can find the abstraction and (tested only in vanilla) also the wav file. But when I press [all 1( in your main patch,  I get an error message &quot; 0_audiodata: no such table&quot;  because on those platforms $0 is not supported in message boxes. The workaround is  to use a float box and $1 like this <img src="/uploads/files/1703804331325-image.png" alt="image.png" class="img-responsive img-markdown" /><br />
In Purr-Data I would'nt be able to give you an answer. Did you try adding a [declare -path ./ ] object in your cloneobject abstraction ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/2</guid><dc:creator><![CDATA[jyg]]></dc:creator><pubDate>Thu, 28 Dec 2023 23:05:06 GMT</pubDate></item><item><title><![CDATA[Reply to declare -path with clone objects on Fri, 29 Dec 2023 20:56:05 GMT]]></title><description><![CDATA[<p>Yes, adding [declare -path Subfolder] to clonedobject.pd works. Unfortunately,  this violates the flexibility of an abstraction since the same directory must be used for one particular abstraction in every patch. But at least this would be helpful to keep the root directory clean.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/3</guid><dc:creator><![CDATA[xaverius]]></dc:creator><pubDate>Fri, 29 Dec 2023 20:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to declare -path with clone objects on Fri, 29 Dec 2023 23:56:15 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/xaverius">@xaverius</a> why do you need each clone to have its own array, if you're reading the same soundfile into all of them?<br />
If you aren't modifying it differently in each copy you can just load it outside of the <code>[clone]</code>s and pass the name of the array as an argument to <code>[clone]</code> and your abstraction. That will enable the abstraction to have full flexibility for other soundfiles and even other arrays..</p>
<p>If you do need to modify it differently in each copy, then are you trying to use the subfolder of whatever folder the containing patch is in? you could normally use <code>[pdcontrol]</code> for that in vanilla think (not sure about purr data), but from a design perspective I would be careful to require a certain directory structure of the calling class.. (you could get the path from the user instead)</p>
<p>I don't get what you're trying to do tbh. Maybe it would help to upload your full use case.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/4</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Fri, 29 Dec 2023 23:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to declare -path with clone objects on Sat, 30 Dec 2023 16:46:04 GMT]]></title><description><![CDATA[<p>The use case is a granular synth similar to these ones:<br />
<div class="embed-container"><iframe src="//www.youtube.com/embed/gRKfyIT_yF0" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><br />
<div class="embed-container"><iframe src="//www.youtube.com/embed/0VuRK1wMdVM" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
<p>Respectively, there is only one sample, but played simultaneously at different positions and with different speed etc. At the moment I'm using multiple sampler instances each with its own array and read by its own tabread4~ object. The granular synth abstraction is used in several patches and I'd like to declare a subfolder for the sample used in the cloned sampler instances in order keep everything structured and clean. But yes, a great idea to use only one array and pass it to all sampler instances! I'll definitively try it out. Thank you!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14563/declare-path-with-clone-objects/5</guid><dc:creator><![CDATA[xaverius]]></dc:creator><pubDate>Sat, 30 Dec 2023 16:46:04 GMT</pubDate></item></channel></rss>