I'm trying to get a BS2SX talking with MAXMsp's serial object using Word sized variables. So far I can communicate just fine using any numbers below 255 (byte sized) but after that it gets a bit messy. I realized that I should send over the word variable as a HIGHBYTE and a LOWBYTE and have MAXMsp shift the Highbyte and then add them together.
This seems to *want* to work, but MAXMsp appears to get off track when taking in the numbers as the HIGHBYTE and LOWBYTE values appear to erratically swap places. I'm trying to find a good method to get consistent and clean input and separation of the two byte's.
I've tried having MAX send a single ASCII character out to the stamp when it's ready to get the next byte, the problem there is how to I only want to get a bang from the serial object when it receives input. As of right now it passes bangs from the metro right through, which makes it impossible to have MAX send out a new character only when it receives input.
Thoughts and suggestions?