thomasfredericks / MicroOsc

MicroOsc is a minimal Open Sound Control (OSC) library for Arduino
MIT License
16 stars 2 forks source link

Negative values #2

Open nanofortran opened 11 months ago

nanofortran commented 11 months ago

Sending data from Arduino to Max/MSP via Bee. Connection works, but when numbers go negative, there is some sort of data over run or leak. Not sure if negative numbers are in the OSC protocol , but they should be. Max throws this error, "slipOSC: slipOSC: ESC not followed by ESC_END or ESC_ESC."

Easy to replicate, send a negative value across the ether.

nanofortran commented 11 months ago

As I get a bit more into this, it appears it is just negative integers that throw this issue. Thanks!

thomasfredericks commented 11 months ago

Hi, please post a code sample and the hardware you are using. It is probably the conversion from an int16 to an int32.

nanofortran commented 10 months ago

Sorry, had to step away from the project. Will get back with you soon.