[PD] packOSC integer marshalling

2012-09-07 Thread Jamie Bullock
Hi list, It looks like the mrpeach [packOSC] external converts Pd floats to OSC integers if the float value is equal to the float value cast to an int. From the source code: /* It might be an int, a float, or a string */ switch (a-a_type) { case A_FLOAT: f =

Re: [PD] packOSC integer marshalling

2012-09-07 Thread Martin Peach
I guess it's because all numbers in Pd are floats, but usually integer floats are meant to be integers. But obviously it's impossible for the code to know what the user wants, so you can also force the type by using the [sendtyped ...( message. Probably sending all numbers as floats will annoy

Re: [PD] packOSC integer marshalling

2012-09-07 Thread Jamie Bullock
Hi Martin, On 7 Sep 2012, at 14:13, Martin Peach martin.pe...@sympatico.ca wrote: I guess it's because all numbers in Pd are floats, but usually integer floats are meant to be integers. But obviously it's impossible for the code to know what the user wants, so you can also force the type