<?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[Getting the unique value for each subpatch.]]></title><description><![CDATA[<p>I wonder if there's any way to get the unique value or symbol that can be used in each subpatch.<br />
Something like $0 but that is unique in each subpatch.<br />
Is there any external that does a similar thing?<br />
Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 08:28:00 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11103.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Nov 2017 03:38:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Getting the unique value for each subpatch. on Wed, 08 Nov 2017 03:38:44 GMT]]></title><description><![CDATA[<p>I wonder if there's any way to get the unique value or symbol that can be used in each subpatch.<br />
Something like $0 but that is unique in each subpatch.<br />
Is there any external that does a similar thing?<br />
Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch</guid><dc:creator><![CDATA[cuinjune]]></dc:creator><pubDate>Wed, 08 Nov 2017 03:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to Getting the unique value for each subpatch. on Wed, 08 Nov 2017 08:44:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cuinjune">@cuinjune</a> No, because a sub-patch is really just a hidden window in the patch that contains it, and it inherits all of the same attributes.  It is in fact a canvas....... <a href="https://puredata.info/docs/developer/PdFileFormat" rel="nofollow">https://puredata.info/docs/developer/PdFileFormat</a></p>
<p>But you can &quot;name&quot; it with [namecanvas] and so send messages to it like this...... <a href="/uploads/files/1510128964318-example.zip">example.zip</a>  and of course use unique [send] and [receive] messages.</p>
<p>As a sub-patch is saved with the patch it cannot be saved separately.  However, you can have many sub-patches with the same name, and changing the contents of one of them does not affect the contents of the others (unlike abstractions).  You need to choose &quot;sub-patch&quot; or &quot;abstraction&quot; according to your requirements.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 08 Nov 2017 08:44:14 GMT</pubDate></item><item><title><![CDATA[Reply to Getting the unique value for each subpatch. on Wed, 08 Nov 2017 11:24:07 GMT]]></title><description><![CDATA[<p>why would you need unique names for sub-patches? If two sub-patches are identical, then they should be used as abstractions instead. That's what an abstraction is for, re-use of code.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/3</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Wed, 08 Nov 2017 11:24:07 GMT</pubDate></item><item><title><![CDATA[Reply to Getting the unique value for each subpatch. on Wed, 08 Nov 2017 14:17:48 GMT]]></title><description><![CDATA[<p>In Purr Data <code>[name(---[canvasinfo]</code> will output the unique symbol receiver for the canvas in which it appears, including subpatches. Also, if you type <code>&lt;ctrl-m&gt;</code> to send a message to Pd in Purr Data, the text entry begins with that same symbol receiver highlighted so that you can send a message directly to that canvas if you want. However, those symbols are essentially randomly chosen hex strings which will be different if you restart Pd.</p>
<p>But those are both there mostly for debugging purposes.</p>
<p>There is also <code>[ggee/receivelocal]</code> and <code>[ggee/sendlocal]</code> which are local to a particular canvas or subpatch. When you instantiate them a warning is printed saying that they are deprecated by &quot;send/receive $0-foo&quot;. But dollarsign zero isn't local to subpatches so I don't understand the warning.</p>
<p>Edit: clarification</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/4</guid><dc:creator><![CDATA[jancsika]]></dc:creator><pubDate>Wed, 08 Nov 2017 14:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to Getting the unique value for each subpatch. on Wed, 08 Nov 2017 22:18:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jancsika">@jancsika</a> Hi, that was exactly what I wanted to know. Thank you so much!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11103/getting-the-unique-value-for-each-subpatch/5</guid><dc:creator><![CDATA[cuinjune]]></dc:creator><pubDate>Wed, 08 Nov 2017 22:18:18 GMT</pubDate></item></channel></rss>