[PD] removing NaN
fbar at footils.org
Mon Sep 29 15:20:42 CEST 2008
Damian Stewart hat gesagt: // Damian Stewart wrote:
> David Brynjar Franzson wrote:
> > the expr works fine with expr (isnan($f1), 0, $f1). The route f method
> > doesn't work since NaN is treated as a valid floating point "number".
> on pd-0.40-3-extended (osx intel) trying to use this i get :
> expr: syntax error: illegal comma
> error: expr: syntax error
> expr (isnan($f1) , 0 , $f1)
> ... couldn't create
There's an "if" missing. Try: "expr if(isnan($f1) , 0 , $f1)" instead.
More information about the Pd-list