[PD] int - float confusion with OSC communication

Hans-Christoph Steiner hans at eds.org
Thu May 22 21:24:28 CEST 2008


On May 22, 2008, at 9:10 PM, zmoelnig at iem.at wrote:

> Quoting Jack <jack at rybn.org>:
>
>> In fact, what i say is that your patch works fine here when you send
>> messages [send /int 1(, [send /float 0.1( and [send /negative -1( to
>> [mrpeach/packOSC].
>
> good.
>
>>
>> But if I send [-34( or [send -34( to [mrpeach/udpsend] then :
>> error: udpsend_send: item 0 (-34.000000) is not between 0 and 255
>>
>
> that's intended behaviour.
> (and the object is right in claiming that -34 is outside 0..255 :-))

To elaborate on that, the idea is that [123( should send a byte, and  
a byte is usually defined as a value between 0 and 255 (i.e. 8-bit  
unsigned value).

.hc

>
>
> fgmadsr
> IOhannes
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list



------------------------------------------------------------------------ 
----

                                               http://at.or.at/hans/






More information about the Pd-list mailing list