Ah that is nice, you just don&#39;t need the set messages. :)<div><br></div><div>I always looked at the iem gui objects as more sophisticated and better for GUI front ends, not meant for writing a self-documenting patch.  They save time and look/act better, but everyone I have met using pd for educational purposes uses the more simple numberbox.</div>
<div><br></div><div>rich<br><br><div class="gmail_quote">On Sun, Jan 17, 2010 at 12:23 AM, Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I attached a modified version of your patch to show what I mean.  On the<br>
right, you can look at the patch and figure out the behavior before you<br>
scroll the gatom box (important if you want to make sure you&#39;re avoiding<br>
a buffer overflow).<br>
<br>
On the left, you have to read the source code for those GUI objects to<br>
figure out what&#39;s going to happen.  Judging from your original patch,<br>
I think you assumed that sending a float straight to the [nbx] would<br>
update the value in the slider (so did I).  This turns out not to be the<br>
case: the two GUIs are only bound together if you change the values on one<br>
of them using the mouse.<br>
<br>
If someone who reads and understands c better than me can explain why<br>
the iemgui magic works as it does, I&#39;ll be happy to document it.<br>
<br>
-Jonathan<br>
<br>
<br>
<br>
--- On Sat, 1/16/10, Rich E &lt;<a href="mailto:rich.eakin@gmail.com">rich.eakin@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: Rich E &lt;<a href="mailto:rich.eakin@gmail.com">rich.eakin@gmail.com</a>&gt;<br>
<div class="im">&gt; Subject: Re: [PD] &#39;synced&#39; number and slider<br>
</div>&gt; To: &quot;Jonathan Wilkes&quot; &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
&gt; Cc: &quot;Lorenzo&quot; &lt;<a href="mailto:lsutton@libero.it">lsutton@libero.it</a>&gt;, &quot;IOhannes zmölnig&quot; &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;, <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>

&gt; Date: Saturday, January 16, 2010, 8:38 PM<br>
<div><div></div><div class="h5">&gt; You can still send the set message directly<br>
&gt; to the inlet of the numberbox2 or slider and it won&#39;t<br>
&gt; effect the other.  See patch. <br>
&gt;<br>
&gt; 2010/1/16 Jonathan Wilkes &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- On Sat, 1/16/10, IOhannes zmölnig &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; From: IOhannes zmölnig &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>
&gt;<br>
&gt; &gt; Subject: Re: [PD] &#39;synced&#39;<br>
&gt; number and slider<br>
&gt;<br>
&gt; &gt; To: &quot;Lorenzo&quot; &lt;<a href="mailto:lsutton@libero.it">lsutton@libero.it</a>&gt;<br>
&gt;<br>
&gt; &gt; Cc: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt;<br>
&gt; &gt; Date: Saturday, January 16, 2010, 11:36 AM<br>
&gt;<br>
&gt; &gt; Lorenzo wrote:<br>
&gt;<br>
&gt; &gt; &gt; This seems trivial but I&#39;ve never managed to<br>
&gt; figure<br>
&gt;<br>
&gt; &gt; out how to do it in<br>
&gt;<br>
&gt; &gt; &gt; a non-trivial way:<br>
&gt;<br>
&gt; &gt; &gt;<br>
&gt;<br>
&gt; &gt; &gt; Have a number (atom) and a slider (be it<br>
&gt; horizontal or<br>
&gt;<br>
&gt; &gt; vertical) which<br>
&gt;<br>
&gt; &gt; &gt; are &#39;synced&#39;, that is if one changes the<br>
&gt; number the<br>
&gt;<br>
&gt; &gt; slider changes and<br>
&gt;<br>
&gt; &gt; &gt; vice-versa.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; if you use numberbox2 as the numberbox, you can give<br>
&gt; both<br>
&gt;<br>
&gt; &gt; the nbx and<br>
&gt;<br>
&gt; &gt; the slider the same send/receive names<br>
&gt;<br>
&gt; &gt; (that is:<br>
&gt;<br>
&gt; &gt;<br>
&gt; numberbox2.sendname=numberbox2.receivename=slider.sendname=slider.receivename)<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; and they will be magically linked to each other.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; to use the value in the patch add another receiver<br>
&gt;<br>
&gt; &gt; [r &lt;samereceivename&gt;]<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Except if you need to send a value to the inlet<br>
&gt; of the numbox2 or the slider.  Then this method magically<br>
&gt; doesn&#39;t work, whereas the [set $1(<br>
&gt;<br>
&gt; idiom does.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; gfmadr<br>
&gt;<br>
&gt; &gt; IOhannes<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; -----Inline Attachment Follows-----<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt;<br>
&gt; &gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a><br>
&gt;<br>
&gt; &gt; mailing list<br>
&gt;<br>
&gt; &gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt;<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a><br>
&gt; mailing list<br>
&gt;<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
      </div></div></blockquote></div><br></div>