<div dir="ltr"><div>Dear Christof,</div><div><br></div><div>I understand that tradeoff when working with real-time audio. <br></div><div><br></div><div>However, I was talking about control logic, not audio.</div><div><br></div><div>BH<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--<br>William Huston:  <a href="mailto:WilliamAHuston@gmail.com" target="_blank">WilliamAHuston@gmail.com</a><br>Binghamton NY<br><div style="text-align:center"><div style="text-align:center"><span></span><br><span><b>Public Service Mapping / Videography / Research</b></span><br><span></span><a href="http://WilliamAHuston.blogspot.com" target="_blank">Blog</a> -- <a href="http://facebook.com/billhuston" target="_blank">Facebook</a> -- <a href="http://twitter.com/WilliamAHuston" target="_blank">Twitter  </a><span><span><span>-- <a href="https://www.youtube.com/channel/UCGijK1amWOLglT3YeTyEBNQ?sub_congfirmation=1" target="_blank">Youtube</a></span></span></span><br><span><span><span></span></span></span>Document collections: <a href="http://TinyURL.com/VirtualPipelines" target="_blank">VirtualPipelines</a> -- <a href="http://bit.ly/BHDCSDimockArchive" target="_blank">BHDCSDimockArchive</a><br><span><span>Please support my work: <a href="http://TinyURL.com/DonateToBillHuston" target="_blank">TinyURL.com/DonateToBillHuston</a></span></span><br></div><span><span></span></span></div><span><br></span></div><div><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, May 24, 2018 at 10:57 AM, Christof Ressi <span dir="ltr"><<a href="mailto:christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi William,<br>
 <br>
there's no other sane way to handle division by 0 in the audio domain since the result must be a number and there are only two options: output 0 or some ridiculously large number (which would be quite dangerous).<br>
Pd *could* handle it differently in the control domain, but why? <br>
as Matt said: just don't divide by 0 :-)<br>
<br>
Christof<br>
 <br>
<br>
Gesendet: Donnerstag, 24. Mai 2018 um 16:52 Uhr<br>
Von: "Matt Davey" <<a href="mailto:hard.off@gmail.com">hard.off@gmail.com</a>><br>
An: "William Huston" <<a href="mailto:williamahuston@gmail.com">williamahuston@gmail.com</a>><br>
Cc: "<a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>" <<a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>><br>
Betreff: Re: [PD] 1 / 0 = 0?<br>
<span class="">Just don’t allow your function to blow up in the first place. <br>
<br>
</span><span class="">On Thursday, May 24, 2018, William Huston <<a href="mailto:williamahuston@gmail.com">williamahuston@gmail.com</a>[<wbr>mailto:<a href="mailto:williamahuston@gmail.com">williamahuston@gmail.<wbr>com</a>]> wrote:<br>
<br>
I have a function which blows up at a certain point, moves to infinity.<br>
In this case, it is basically 1/0.<br>
 <br>
I was a little surprised to find that 1/0 = 0 (according to Pd).<br>
I was expecting NaN, or an overflow condition would could be trapped.<br>
 <br>
So what I have to do is examine the *input* for the values<br>
which will blow up my function, and set a flag. While this<br>
is easy in this single case, it is awkward in the general case.<br>
 <br>
This seems somewhat broken to me.<br>
Is this a bug?<br>
 <br>
Thanks<br>
BH<br>
 <br>
 <br>
<br>
--<br>
</span>William Huston:  <a href="mailto:WilliamAHuston@gmail.com">WilliamAHuston@gmail.com</a>[<wbr>mailto:<a href="mailto:WilliamAHuston@gmail.com">WilliamAHuston@gmail.<wbr>com</a>]<br>
<span class="">Binghamton NY<br>
<br>
Public Service Mapping / Videography / Research<br>
</span>Blog[<a href="http://WilliamAHuston.blogspot.com" rel="noreferrer" target="_blank">http://WilliamAHuston.<wbr>blogspot.com</a>] -- Facebook[<a href="http://facebook.com/billhuston" rel="noreferrer" target="_blank">http://facebook.com/<wbr>billhuston</a>] -- Twitter [<a href="http://twitter.com/WilliamAHuston" rel="noreferrer" target="_blank">http://twitter.com/<wbr>WilliamAHuston</a>] -- Youtube[<a href="https://www.youtube.com/channel/UCGijK1amWOLglT3YeTyEBNQ?sub_congfirmation=1" rel="noreferrer" target="_blank">https://www.youtube.<wbr>com/channel/<wbr>UCGijK1amWOLglT3YeTyEBNQ?sub_<wbr>congfirmation=1</a>]<br>
Document collections: VirtualPipelines[<a href="http://TinyURL.com/VirtualPipelines" rel="noreferrer" target="_blank">http://<wbr>TinyURL.com/VirtualPipelines</a>] -- BHDCSDimockArchive[<a href="http://bit.ly/BHDCSDimockArchive" rel="noreferrer" target="_blank">http://bit.<wbr>ly/BHDCSDimockArchive</a>]<br>
Please support my work: TinyURL.com/<wbr>DonateToBillHuston[<a href="http://TinyURL.com/DonateToBillHuston" rel="noreferrer" target="_blank">http://<wbr>TinyURL.com/DonateToBillHuston</a><wbr>]<br>
 _____________________________<wbr>__________________ <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list[https://lists.puredata.info/listinfo/pd-list]" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list[https://<wbr>lists.puredata.info/listinfo/<wbr>pd-list]</a><br>
</blockquote></div><br></div>