hi list, here's an issue I have with OSC:
[send /addr 1000000] | | [sendOSC 1024]
what's transmitted here is not an integer but the string "1e+006"
any workaround to transmit numbers bigger than a million ?
If you're willing to lose a small amount of precision (or at least it should be a small amount, who knows given this craziness), you can take the square root before transmitting and square it after receiving. Provided your number is not bigger than one million millions, that should avoid the problem you describe.
nice trick, but I need every single bit as I'm setting mode registers in my gluion interface: glui.de/prod/gluion.html (where resources are too sparse to assign each bit a separate OSC address) the obvious workaround for the moment is to send two 16bit numbers instead of one 32bit......
... Jesus, a string?
- John
nice trick, but I need every single bit as I'm setting mode registers in my gluion interface: glui.de/prod/gluion.html (where resources are too sparse to assign each bit a separate OSC address) the obvious workaround for the moment is to send two 16bit numbers instead of one 32bit......
-Did you ask n the OSC-list as well? If not: http://www.create.ucsb.edu/pipermail/osc_dev
AvS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
` |Schreck Ensemble . . . . . . . . . . . . . . . . . . . . +
` |# -laboratory for live electro-acoustic music- # |
| http://www.schreck.nl/ |
| http://www.xs4all.nl/~schreck/ |
` *===========================================================++
` |Compositions http://www.xs4all.nl/~schreck/html/compo.html |
` |Samples http://www.xs4all.nl/~schreck/html/samp.html |
` |Patches http://www.xs4all.nl/~schreck/html/pat.html |
` |Videos http://www.xs4all.nl/~schreck/html/video.html |
` |Scores http://www.xs4all.nl/~schreck/html/scores.html |
*===========================================================++
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
Le 15 Avril 2005 17:40, Sukandar Kartadinata a écrit :
the obvious workaround for the moment is to send two 16bit numbers instead of one 32bit......
Then you could use "divmod 0 65535" to split a 32 bits number into a list of two 16 bits numbers.This is a solution, not a workaround... ;-) -- Marc
Hi Marc!
I should be in montreal this coming weekend (22nd and 23rd) I have a pixelACHE publication with a note from Juha for you! I'll let me know when the trip gets confirmed.
b>
Marc Lavallée wrote:
Le 15 Avril 2005 17:40, Sukandar Kartadinata a écrit :
the obvious workaround for the moment is to send two 16bit numbers instead of one 32bit......
Then you could use "divmod 0 65535" to split a 32 bits number into a list of two 16 bits numbers.This is a solution, not a workaround... ;-) -- Marc
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list