[PD] removing NaN

2008-09-13 Thread David Brynjar Franzson
Hi,

 is there any simple way to replace all NaN values with Zeros or
to filter them out?

thanks,
David Brynjar

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] removing NaN

2008-09-13 Thread David Brynjar Franzson
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".

thanks for the help,
David Brynjar

On Sat, Sep 13, 2008 at 11:05 AM, tim <[EMAIL PROTECTED]> wrote:
> [expr] contains a function 'isnan'.
> Not sure how to use it though.
> can someone give an example ?
>
> Tim
>
> On Sat, 2008-09-13 at 10:36 -0400, David Brynjar Franzson wrote:
>> Hi,
>>
>>  is there any simple way to replace all NaN values with Zeros or
>> to filter them out?
>>
>> thanks,
>> David Brynjar
>>
>> ___
>> Pd-list@iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> http://lists.puredata.info/listinfo/pd-list
> --
> ...
> www.timvets.net
> [EMAIL PROTECTED], [EMAIL PROTECTED]
> 0032 474 89 66 86
> skype: tim167_
> ...
>
>

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


[PD] floats getting forced into int

2007-02-14 Thread David Brynjar Franzson

Hey,

I am working on a project that sends OSC messages from PD, and for
some reason, when dealing with message lists of mixed objects, such as
[send /OSC/blah 0.0 1.0 1.0], PD turns the floating point numbers into
int, but only when they represent whole numbers. Can anyone think of a
work around where they stay as floating point, or is there some simple
solution that I am missing (I can't be bothered to hack up an external
just to solve this).

thanks,

db

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] floats getting forced into int

2007-02-14 Thread David Brynjar Franzson

Thank you all for your suggestions.

I'm going to try Frank's patch, but the only  sendOSC.c I can find is
since 2002, and I cannot find it in any of the code trees. Where does
it live nowadays?

db

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list