<?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[Synchronized GUI elements (toggles) - without recursion?]]></title><description><![CDATA[<p>Hi all,</p>
<p>For a while I've wanted to have &quot;synchronized&quot; toggles, so that say I could have two of them, maybe one in top left of the patch window - and the other in the bottom right of the patch window, where I might be doing some work; and in case the window is large, then from the position of bottom right it would be a bit tedious and scroll to top left each time I wanted to click the button. In this kind of situation, I'd expect only one (say, the top left) to have its outlet connected to an actual object - the other would be there just to ease the working process.</p>
<p>So basically, it would be &quot;either/or&quot; pair - if I toggle one button on, the other turns on too; if I then toggle the other off, the first one turns of too.</p>
<p>Of course, if you just try to do the most trivial implementation of this:</p>
<p><img src="/uploads/files/1543545651965-pd-recursegui.png" alt="pd-recursegui.png" class="img-responsive img-markdown" /></p>
<p>... that is, outlet of one into inlet of other, and vice versa - and then you click either one, - PD will either crash/segfault, or you'll get a &quot;stack overflow&quot; message; since in this case, a recursive update loop happens.</p>
<p>So is there another method to allow for such &quot;synchronized&quot; buttons, without ending up in a recursive loop, and potentially crashing PD? Also, I could image synchronized number boxes to be useful, too...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11789/synchronized-gui-elements-toggles-without-recursion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 17:42:27 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11789.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Nov 2018 02:45:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Synchronized GUI elements (toggles) - without recursion? on Fri, 30 Nov 2018 02:57:37 GMT]]></title><description><![CDATA[<p>Hi all,</p>
<p>For a while I've wanted to have &quot;synchronized&quot; toggles, so that say I could have two of them, maybe one in top left of the patch window - and the other in the bottom right of the patch window, where I might be doing some work; and in case the window is large, then from the position of bottom right it would be a bit tedious and scroll to top left each time I wanted to click the button. In this kind of situation, I'd expect only one (say, the top left) to have its outlet connected to an actual object - the other would be there just to ease the working process.</p>
<p>So basically, it would be &quot;either/or&quot; pair - if I toggle one button on, the other turns on too; if I then toggle the other off, the first one turns of too.</p>
<p>Of course, if you just try to do the most trivial implementation of this:</p>
<p><img src="/uploads/files/1543545651965-pd-recursegui.png" alt="pd-recursegui.png" class="img-responsive img-markdown" /></p>
<p>... that is, outlet of one into inlet of other, and vice versa - and then you click either one, - PD will either crash/segfault, or you'll get a &quot;stack overflow&quot; message; since in this case, a recursive update loop happens.</p>
<p>So is there another method to allow for such &quot;synchronized&quot; buttons, without ending up in a recursive loop, and potentially crashing PD? Also, I could image synchronized number boxes to be useful, too...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11789/synchronized-gui-elements-toggles-without-recursion</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11789/synchronized-gui-elements-toggles-without-recursion</guid><dc:creator><![CDATA[sdaau_ml]]></dc:creator><pubDate>Fri, 30 Nov 2018 02:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to Synchronized GUI elements (toggles) - without recursion? on Fri, 30 Nov 2018 03:03:15 GMT]]></title><description><![CDATA[<p>Meh, I should have thought of this earlier - the fix is just to use <code>[set $1(</code>, to update the value but not trigger a bang/message on the output:</p>
<p><img src="/uploads/files/1543546987069-pd-sync-ok.png" alt="pd-sync-ok.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11789/synchronized-gui-elements-toggles-without-recursion/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11789/synchronized-gui-elements-toggles-without-recursion/2</guid><dc:creator><![CDATA[sdaau_ml]]></dc:creator><pubDate>Fri, 30 Nov 2018 03:03:15 GMT</pubDate></item></channel></rss>