<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’d also note that, as far as I recall, the atom number box has always worked in a similar way to the now updated slider: the min & max control the UI interaction limits but do not clip the incoming/outgoing numbers.<div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--------<br class="">Dan Wilcox<br class=""><a href="https://twitter.com/danomatika" class="">@danomatika</a><br class=""><a href="http://danomatika.com" class="">danomatika.com</a><br class=""><div class=""><a href="http://robotcowboy.com" class="">robotcowboy.com</a></div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 20, 2015, at 6:03 PM, William Huston <<a href="mailto:williamahuston@gmail.com" class="">williamahuston@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Thanks for the fast response, Dan.<br class=""><br class="">> Also judging form the commit, you can simply launch pd with an older compatibly mode.<br class=""><div class=""><br class=""></div><div class="">From the update summary:<br class=""></div><div class=""><br class=""><div style="margin-left:40px" class="">updates to other guis. sliders and radios now pass values through without<br class="">quantizing them, and toggles don't reset their non-zero values on incoming<br class="">float messages.  Reverts to old behavior if "pd cpmpatibility" is set<br class=""></div><div style="margin-left:40px" class=""><= 0.45<b class="">  </b>(change committed Aug 4, 2014)<b class=""><br class=""></b></div><b class=""><br class=""></b></div><div class=""><b class="">Well "quantizing" is different from range-limiting. <br class=""><br class=""></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/" class="">https://www.facebook.com/groups/4729684494/permalink/10152864120779495/</a><br class=""><br class=""></div><div class="">I've added the range limit issue to the bottom here. <br class=""></div><div class=""><br class=""><span id="cid:ii_iif8x42j0_151c203d810d74d1"><quantization vs range-limiting.gif></span><br class="">​(apologies to anyone with a text-based email client)<br class=""><br class="">Also, the  "pd cpmpatibility<b class="">" </b>(and is that a typo?) mode is not ideal IMO because there are other side-effects, i.e., effect on toggles. <br class=""><br class=""></div><div class="">I think the proper behavior is that <b class=""><u class="">when </u>sliders pass input, the value is identical to the input, i.e., not "quantized" by e.g., a log-slider <br class=""><u class="">AND ALSO</u> respects range-limits (if specified). <br class=""></b></div><div class=""><br class=""></div><div class=""></div><div class="">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 class=""><br class="">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 class=""><br class="">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 class=""><br class="">Also, there is a very easy workaround (assuming the OLD behavior of HSL):<br class=""><br class=""></div><div class="">source<br class="">| \<br class=""></div><div class="">|     \<br class="">[hsl]   \<br class=""></div><div class="">|            non-range limited output here<br class=""></div><div class="">|<br class="">range limited output here<br class=""><br class=""></div><div class=""><b class="">Again-- this should be caught by a full suite of regression tests. <br class=""></b></div><div class=""><b class="">Do they exist?<br class=""></b></div><div class=""><b class=""><br class=""></b>Regression tests should make sure that the language specification is followed, and errors are not introduced in new versions.<br class=""><br class="">If there are no regression tests, <br class="">then maybe there is no language specification...? <br class=""><b class=""><br class="">Look, how are we going to get the US Department of Defense to accept PD for MILSPEC applications like this!?   <br class=""><br class="">(It's a joke!)<br class=""><br class=""></b>Thanks,<br class=""></div></div>BH<br class=""><div class=""><div class=""><div class=""><div class=""><br class=""><br class=""></div></div></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Dec 20, 2015 at 6:55 PM, Dan Wilcox <span dir="ltr" class=""><<a href="mailto:danomatika@gmail.com" target="_blank" class="">danomatika@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Judging from this commit, the new behavior is by design: <a href="https://github.com/pure-data/pure-data/commit/f0a3a0c621dacc1f617cf07b38d8dc563703d12e" target="_blank" class="">https://github.com/pure-data/pure-data/commit/f0a3a0c621dacc1f617cf07b38d8dc563703d12e</a><div class=""><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Also judging form the commit, you can simply launch pd with an older compatibly mode.</div><div class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">--------<br class="">Dan Wilcox<br class=""><a href="https://twitter.com/danomatika" target="_blank" class="">@danomatika</a><br class=""><a href="http://danomatika.com/" target="_blank" class="">danomatika.com</a><br class=""><div class=""><a href="http://robotcowboy.com/" target="_blank" class="">robotcowboy.com</a></div></div>

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