<div dir="ltr"><div>Thanks for the fast response, Dan.<br><br>> Also judging form the commit, you can simply launch pd with an older compatibly mode.<br><div><br></div><div>From the update summary:<br></div><div><br><div style="margin-left:40px">updates to other guis. sliders and radios now pass values through without<br>quantizing them, and toggles don't reset their non-zero values on incoming<br>float messages.  Reverts to old behavior if "pd cpmpatibility" is set<br></div><div style="margin-left:40px"><= 0.45<b>  </b>(change committed Aug 4, 2014)<b><br></b></div><b><br></b></div><div><b>Well "quantizing" is different from range-limiting. <br><br></b>I actuallly raised the issue about quantizing on FB here: (March 9, 2015) but not on pd-list.  <a href="https://www.facebook.com/groups/4729684494/permalink/10152864120779495/">https://www.facebook.com/groups/4729684494/permalink/10152864120779495/</a><br><br></div><div>I've added the range limit issue to the bottom here. <br></div><div><br><img src="cid:ii_iif8x42j0_151c203d810d74d1" height="267" width="402"><br>​(apologies to anyone with a text-based email client)<br><br>Also, the  "pd cpmpatibility<b>" </b>(and is that a typo?) mode is not ideal IMO because there are other side-effects, i.e., effect on toggles. <br><br></div><div>I think the proper behavior is that <b><u>when </u>sliders pass input, the value is identical to the input, i.e., not "quantized" by e.g., a log-slider <br><u>AND ALSO</u> respects range-limits (if specified). <br></b></div><div><br></div><div></div><div>The general rule being, that if you want to create a change in behavior, PD should default to the OLD, behavior to maintain regression compatibility....<br><br>Unless the behavior is very badly broken. Quantization is such an example of "badly broken" IMO, as it is a side-effect, where floats are subtly and unexpected modified (and can become large changes if these floats are taken as integers (or compared as integers). <br><br>It is perfectly reasonable to expect specified range-limits to be respected by input messages, and rather surprising to me that they are not. <br><br>Also, there is a very easy workaround (assuming the OLD behavior of HSL):<br><br></div><div>source<br>| \<br></div><div>|     \<br>[hsl]   \<br></div><div>|            non-range limited output here<br></div><div>|<br>range limited output here<br><br></div><div><b>Again-- this should be caught by a full suite of regression tests. <br></b></div><div><b>Do they exist?<br></b></div><div><b><br></b>Regression tests should make sure that the language specification is followed, and errors are not introduced in new versions.<br><br>If there are no regression tests, <br>then maybe there is no language specification...? <br><b><br>Look, how are we going to get the US Department of Defense to accept PD for MILSPEC applications like this!?   <br><br>(It's a joke!)<br><br></b>Thanks,<br></div></div>BH<br><div><div><div><div><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 20, 2015 at 6:55 PM, Dan Wilcox <span dir="ltr"><<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Judging from this commit, the new behavior is by design: <a href="https://github.com/pure-data/pure-data/commit/f0a3a0c621dacc1f617cf07b38d8dc563703d12e" target="_blank">https://github.com/pure-data/pure-data/commit/f0a3a0c621dacc1f617cf07b38d8dc563703d12e</a><div><div><br></div><div>I seem to remember a long discussion where people *did not* like the clipping behavior. The rational was that the min/max values are meant for the UI min and max without enforcing direct clipping which you can do using [clip] explicitly.<div><br></div><div>Also judging form the commit, you can simply launch pd with an older compatibly mode.</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">--------<br>Dan Wilcox<br><a href="https://twitter.com/danomatika" target="_blank">@danomatika</a><br><a href="http://danomatika.com" target="_blank">danomatika.com</a><br><div><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div></div>

</div>
<br><div><blockquote type="cite"><div>On Dec 20, 2015, at 4:07 PM, <a href="mailto:pd-list-request@lists.iem.at" target="_blank">pd-list-request@lists.iem.at</a> wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif;color:rgb(127,127,127)"><b>From:<span> </span></b></span><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif">William Huston <<a href="mailto:williamahuston@gmail.com" target="_blank">williamahuston@gmail.com</a>><br></span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif;color:rgb(127,127,127)"><b>Subject:<span> </span></b></span><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif"><b>[PD] Regression Issue/Bug: Range-limited [hsl] responds differently on out-of-range input</b><br></span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif;color:rgb(127,127,127)"><b>Date:<span> </span></b></span><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif">December 20, 2015 at 4:06:36 PM MST<br></span></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif;color:rgb(127,127,127)"><b>To:<span> </span></b></span><span style="font-family:-webkit-system-font,'Helvetica Neue',Helvetica,sans-serif">"<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>" <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br></span></div><span class=""><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div><div><div><div>Regression Issue/Bug:<span> </span><br><b><br>Issue: Range-limited [hsl] responds differently on out-of-range input<br></b></div><b>PD Versions: 0.43.4-extended vs 0.46.7<br></b></div><b>OS: Raspbian<span> </span><br><br></b></div><b>The patch is:<br><br>[1000(<br>|<br></b></div><b>[hsl] # range limted 0-127 (default setting)<br>|<br></b></div><b>[nbx] <span> </span><br></b><div><div><div><div><div><b><br></b></div><div><b>Upon a bang to the message box,<span> </span><br>0.43.4-extended the answer is 127.<br></b></div><div><b>On 0.46.7 the answer is 1000.<span> </span></b></div></div></div></div></div></div></span></div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--<br>
May you, and all beings<br>
be happy and free from suffering :)<br>
-- ancient Buddhist Prayer (Metta)<br></div></div></div></div>
</div>