<?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[Share data between objects from an external]]></title><description><![CDATA[<p>Hi all,</p>
<p>Preamble: I'm currently working on writing an external that implements the Perlin noise in pd. The Perlin noise is an algorithm for efficiently generating band-limited pseudo-random signals, and it's often used as a building block for creating somewhat random, &quot;natural&quot; looking visuals. But as far as I know, it's never been implemented in an audio environment, so creating an external for it for pure data seems like a fun experiment.</p>
<p>Anyway, the reason for this thread is that I thought it would be nice if all a patch's objects created from this external could share the same table of random &quot;seed&quot; numbers, so that the same results could be gotten from each of them. It would also be necessary for any of the objects to be able to update and reshuffle the table of values whenever a bang is sent to its &quot;reseed&quot; inlet.</p>
<p>I assume that this kind of data-sharing between objects from the same library is possible, because something similar must be going on with [send] and [receive], right? I also imagine it's got something to do with where you declare the data in the code, but that's as far as I've got. Could anyone point me in the right direction for this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 12:50:24 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/4478.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Dec 2010 10:40:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Share data between objects from an external on Fri, 03 Dec 2010 10:40:54 GMT]]></title><description><![CDATA[<p>Hi all,</p>
<p>Preamble: I'm currently working on writing an external that implements the Perlin noise in pd. The Perlin noise is an algorithm for efficiently generating band-limited pseudo-random signals, and it's often used as a building block for creating somewhat random, &quot;natural&quot; looking visuals. But as far as I know, it's never been implemented in an audio environment, so creating an external for it for pure data seems like a fun experiment.</p>
<p>Anyway, the reason for this thread is that I thought it would be nice if all a patch's objects created from this external could share the same table of random &quot;seed&quot; numbers, so that the same results could be gotten from each of them. It would also be necessary for any of the objects to be able to update and reshuffle the table of values whenever a bang is sent to its &quot;reseed&quot; inlet.</p>
<p>I assume that this kind of data-sharing between objects from the same library is possible, because something similar must be going on with [send] and [receive], right? I also imagine it's got something to do with where you declare the data in the code, but that's as far as I've got. Could anyone point me in the right direction for this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external</guid><dc:creator><![CDATA[Stutter]]></dc:creator><pubDate>Fri, 03 Dec 2010 10:40:54 GMT</pubDate></item><item><title><![CDATA[Reply to Share data between objects from an external on Fri, 03 Dec 2010 13:10:09 GMT]]></title><description><![CDATA[<p>If you want a single variable to be accessed by all instances of an external just declare it static.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external/2</guid><dc:creator><![CDATA[saturno]]></dc:creator><pubDate>Fri, 03 Dec 2010 13:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Share data between objects from an external on Fri, 03 Dec 2010 14:14:38 GMT]]></title><description><![CDATA[<p>Perfect!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/4478/share-data-between-objects-from-an-external/3</guid><dc:creator><![CDATA[Stutter]]></dc:creator><pubDate>Fri, 03 Dec 2010 14:14:38 GMT</pubDate></item></channel></rss>