<?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 do we create presets?]]></title><description><![CDATA[<p>How do we create presets like in Max/MSP. Where we can save a state of something like a toggle or a number stored, etc.</p>
<p>In PD, how do we make a preset work? I want it to work especially for toggles. Does anyone know how to save a state of a toggle as X when patch is loaded? And save several states?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 07:00:06 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11654.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Oct 2018 19:43:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do we create presets? on Thu, 04 Oct 2018 19:43:09 GMT]]></title><description><![CDATA[<p>How do we create presets like in Max/MSP. Where we can save a state of something like a toggle or a number stored, etc.</p>
<p>In PD, how do we make a preset work? I want it to work especially for toggles. Does anyone know how to save a state of a toggle as X when patch is loaded? And save several states?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets</guid><dc:creator><![CDATA[otterly]]></dc:creator><pubDate>Thu, 04 Oct 2018 19:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to How do we create presets? on Fri, 05 Oct 2018 00:48:29 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/otterly">@otterly</a></p>
<p>if you right click or cntrl click on a toggle<br />
and select Properties<br />
you can click the button that says &quot;No init&quot; under Parameters<br />
so it changes to Init<br />
when you save the patch it should store its state. (*this also works for sliders radio buttons and the Number2 number atom Shift+Ctrl+N.)</p>
<p>you can also look in the Help Browser at 5.reference/savestate-help.pd</p>
<p>of course if you want to make sure it opens the same way every time regardless i would just use<br />
[loadbang]<br />
|<br />
[1( or [0(</p>
<p>as far as more general state saving techniques there are many methods to do this.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/2</guid><dc:creator><![CDATA[youaresound]]></dc:creator><pubDate>Fri, 05 Oct 2018 00:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to How do we create presets? on Fri, 05 Oct 2018 13:43:48 GMT]]></title><description><![CDATA[<p>If you want to be able to save and load several presets for one patch, arrays are the way to go. There are more than a dozen generic preset managing patches around this forum if you look in the patch and abstraction sections. But you will probably learn more from creating one yourself.</p>
<p>For a simple preset management use ; messages. Use the receive options on your buttons to your advantage. For example let's say you have four toggles receiving on b1, b2, b3, b4 respectively. Then you make a message box like this: [;<br />
b1 1;<br />
b2 0;<br />
b3 0;<br />
b4 1; (<br />
The semicolons are important!. Now you that message will set all those toggles whenever you bang it, without connecting chords for the toggles.</p>
<p>If you're having a lot of toggles you might wanna look into ad-da conversion / binary to decimal and back. This way you can (theoretically) keep track of 32 zeros and ones with one float. There are a couple of conversion patches in the abastractions forum.</p>
<p>As for working with arrays for preset management, take a look at the help files, and the array examples in the /doc/ folder to get an idea what you can do with tabread and tabwrite.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/3</guid><dc:creator><![CDATA[bocanegra]]></dc:creator><pubDate>Fri, 05 Oct 2018 13:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to How do we create presets? on Sat, 06 Oct 2018 07:39:16 GMT]]></title><description><![CDATA[<p>Also check out the new [savestate] object in Vanilla 0.49 for working with abstractions!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11654/how-do-we-create-presets/4</guid><dc:creator><![CDATA[LiamG]]></dc:creator><pubDate>Sat, 06 Oct 2018 07:39:16 GMT</pubDate></item></channel></rss>