Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread katja
On Tue, Sep 10, 2013 at 10:21 AM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: ... In Pd, should objects be able to handle (i.e. not crash) when they get input values of nan and inf, or should they instead make sure that nan and inf never can be sent out of the objects, or both? It is not

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread Kjetil Matheussen
Perhaps expr should check for denormals as well? Two fixes then: 1. Check for denormals in expr 2. Add an isnormal call to the floating value in vd~ to avoid crashing if getting a value that fails the if (delsamps 1.1f) delsamps = 1.1f; if (delsamps limit) delsamps =

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread katja
On Tue, Sep 10, 2013 at 11:12 AM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: Perhaps expr should check for denormals as well? Math objects should be able to output denormals. Without that we could not even make test patches to find or debug denormals-issues in other classes. Two fixes

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread Kjetil Matheussen
On Tue, Sep 10, 2013 at 11:58 AM, katja katjavet...@gmail.com wrote: On Tue, Sep 10, 2013 at 11:12 AM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: Perhaps expr should check for denormals as well? Math objects should be able to output denormals. Without that we could not even make

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread katja
On Tue, Sep 10, 2013 at 12:09 PM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: On Tue, Sep 10, 2013 at 11:58 AM, katja katjavet...@gmail.com wrote: On Tue, Sep 10, 2013 at 11:12 AM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: Perhaps expr should check for denormals as well? Math

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread Kjetil Matheussen
On Tue, Sep 10, 2013 at 1:47 PM, katja katjavet...@gmail.com wrote: On Tue, Sep 10, 2013 at 12:09 PM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: On Tue, Sep 10, 2013 at 11:58 AM, katja katjavet...@gmail.com wrote: On Tue, Sep 10, 2013 at 11:12 AM, Kjetil Matheussen

Re: [PD-dev] Whose fault is this crash? (nan and inf)

2013-09-10 Thread katja
On Tue, Sep 10, 2013 at 2:01 PM, Kjetil Matheussen k.s.matheus...@gmail.com wrote: Since most processors don't flush denormals and non-numbers to zero by default, Pd classes have to deal with it in some selective way. If all math objects (signal objects in particular) would flush those