[Fluxus] osc-send negative numbers
gabor papp
gabor.lists at mndl.hu
Wed Jun 4 11:11:32 PDT 2008
> I forget the details, but I had some problems with this a while back due
> to needing to send NTP timestamps - hence the rather iffy fix. I'll check
> your code and see what happens, but I think that long is 32bit on intel,
> so I might need to change it to long long, or something.
i just changed scheme_get_unsigned_int_val to scheme_get_int_val in the
code. these functions return long or unsigned long, both are 32-bit on
intel. according to inside plt mzscheme: "MzScheme expects to be
compiled in a mode where short is a 16-bit integer, int is a 32-bit
integer, and long has the same number of bits as void*."
so, i think it works fine if used with 32-bit values. aren't ntp
timestamps 64-bit?
32-bit ints are fine with osc, because they are sent with the 'i' type
tag, which is 32-bit. (http://opensoundcontrol.org/spec-1_0)
if we want to send 64-bit values, we should use the 'h' type tag and use
long long with scheme_get_long_long_val.
best,
gabor
More information about the Fluxus
mailing list