<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-05-09 15:15 GMT-03:00 Martin Peach <span dir="ltr"><<a href="mailto:chakekatzil@gmail.com" target="_blank">chakekatzil@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On Wed, May 9, 2018 at 1:13 PM, Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span>2018-05-09 13:53 GMT-03:00 Martin Peach <span dir="ltr"><<a href="mailto:chakekatzil@gmail.com" target="_blank">chakekatzil@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div></div></blockquote></span><div>I just tried this in Max6:<br>[pow 2] with a negative input gives a correct positive result.<br></div><div>[pow 0.5] with negative input sets a floatnumberbox to 'nan',</div></div></div></div></blockquote><div><br></div></span><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">yeah, but try it with [pow~] in max, you'll see that it will filter it out and make it output "0", in the same way I was telling you about the other signal objects that can generate inf/nan (I gave the example of atanh~). Currently, it seems only signal bitwise operator objects in max can potentially create inf/nan, and they have a [bitsafe~] object to deal with that (one which we also cloned for cyclone).</span></div><div><span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"></div></span></div></div></div></div></blockquote></span><div><br>It makes sense for signal objects to give zero, to avoid giant spikes in the audio, but control objects are not only used for audio, they ought to give something more truthful, maybe just post an error message to the console if there is no trapping mechanism that can be constructed in a patch.<br></div></div></div></div></blockquote><div><br></div><div>I get your reasoning, but this should expand to all of pd objects for consistency, perhaps even have a way to select nan/inf... anyway... in any case, this is not only a concern on how to update pow/pow~, there should be a parallel and more general discussion about this, right? As far as updating pow/pow~ goes, my suggestion/fix fits the current way Pd handles this sort of thing.</div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> <br class="gmail-Apple-interchange-newline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">2018-05-09 14:14 GMT-03:00 Jonathan Wilkes<span> </span></span><span dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><<a href="mailto:jancsika@yahoo.com" target="_blank" style="color:rgb(17,85,204)">jancsika@yahoo.com</a>></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">:</span></div><blockquote class="gmail_quote" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div id="gmail-m_2800009990671326895ydpfe9cb0b4yahoo_quoted_6806376624" class="gmail-m_2800009990671326895ydpfe9cb0b4yahoo_quoted"><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)"><div><div id="gmail-m_2800009990671326895ydpfe9cb0b4yiv3182319025"><div><div dir="ltr"><div class="gmail-m_2800009990671326895ydpfe9cb0b4yiv3182319025gmail_extra"><div class="gmail-m_2800009990671326895ydpfe9cb0b4yiv3182319025gmail_quote"><div><span class="gmail-"><div></div></span><div>And how about [pow~]-- what does it do in Max?</div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I hope you got my other message that responded to this question. Just so it is clear, my current Pull Request gives the exact same behaviour of pow~ in Max.</div><br></div></div></div></div>