<?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[How to make and recall variables]]></title><description><![CDATA[<p>Hello, I'm new to Puredata and programming in general.<br />
I've been looking everywhere to create variables in order to call them in objects, for example :<br />
-a &quot;random&quot; creates a number that changes everytime that I want to call &quot;A&quot;<br />
-I want to make it the goal value of a &quot;line&quot;<br />
Sorry if I don't express it properly !<br />
Thank you for your answers.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:43:14 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11148.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Dec 2017 22:15:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to make and recall variables on Wed, 06 Dec 2017 22:15:37 GMT]]></title><description><![CDATA[<p>Hello, I'm new to Puredata and programming in general.<br />
I've been looking everywhere to create variables in order to call them in objects, for example :<br />
-a &quot;random&quot; creates a number that changes everytime that I want to call &quot;A&quot;<br />
-I want to make it the goal value of a &quot;line&quot;<br />
Sorry if I don't express it properly !<br />
Thank you for your answers.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables</guid><dc:creator><![CDATA[trotu]]></dc:creator><pubDate>Wed, 06 Dec 2017 22:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to make and recall variables on Wed, 06 Dec 2017 23:05:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/trotu">@trotu</a> Hi and welcome to Pd. I suggest you read this before you start understanding how the flow of operation works in Pd.<br />
<a href="https://forum.pdpatchrepo.info/topic/5692/hot-and-cold-inlets-execution-order-and-trigger" rel="nofollow">https://forum.pdpatchrepo.info/topic/5692/hot-and-cold-inlets-execution-order-and-trigger</a></p>
<p>Then this might help with your particular question, although I'm not entirely sure I understood what you are trying to achieve precisely.<br />
<a href="/uploads/files/1512601338096-store_values.pd">store_values.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/2</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Wed, 06 Dec 2017 23:05:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to make and recall variables on Wed, 06 Dec 2017 23:13:54 GMT]]></title><description><![CDATA[<p>Thank you ! This is what I was searching for (I think the pack helps a lot).</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/3</guid><dc:creator><![CDATA[trotu]]></dc:creator><pubDate>Wed, 06 Dec 2017 23:13:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to make and recall variables on Fri, 08 Dec 2017 15:32:08 GMT]]></title><description><![CDATA[<p>the [v] object allows for the creation and recollection of global variables. You would use it by calling the object and giving it a name. ie: [v foo].  Now, any time you create an instance of [v foo]. you can send it numbers to set it's value globally, or send a bang to recall it's value locally. If you need to create variables which have symbols or other kinds of data for it's value, then this can be accomplished in several ways. I tend to use cyclone/coll for this. Coll objects can hold a text file that acts as a list of variables and values which can be set and recalled dynamically. A named coll object will also become global in it's scope. Theres a few other ways to do this as well, but this is my goto.</p>
<p>I think the pvar object is like V object only it operates only on a local scope. hope that helps</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/4</guid><dc:creator><![CDATA[th8a]]></dc:creator><pubDate>Fri, 08 Dec 2017 15:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to make and recall variables on Sat, 09 Dec 2017 02:32:48 GMT]]></title><description><![CDATA[<p>It may be just a matter of preference, but i almost always use send/receive instead of the value object. I like this because i can use $0-names with $0 in the beginning and it is consistent with storing symbols (using symbol object instead of float object to store the value). Also i can mix it with the build-in sends/receives of the number boxes. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p><a href="/uploads/files/1512755470747-store_values2.pd">store_values2.pd</a><br />
<img src="/uploads/files/1512755478502-screenshot-from-2017-12-08-18-45-30.png" alt="Screenshot from 2017-12-08 18:45:30.png" class="img-responsive img-markdown" /></p>
<p>Edit: Ok, the comment for the last example is not true anymore with this method in the sense it was originally intended. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11148/how-to-make-and-recall-variables/5</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 09 Dec 2017 02:32:48 GMT</pubDate></item></channel></rss>