Forums > MaxMSP

[beginner] Backgroud color don't react very good

October 4, 2013 | 8:26 pm

Hi :)

I’m trying to control the background color of MAX receiving OSC messages. I use the OSC CNMAT_Externals-Windows-1.0-58 library.

Everything looks good, I receive perfectly my OSC message and with a JavaScript code, I get 3 output integers 0..255 of the R,G and B values. The change is in realtime. But the "Refresh" of the background fails, I have to send two times the OSC message (click 2 or 3 times on the button with the tablet).

What happen? I’m sure I forgot something in the patch…

Thanks for advance for the help!

Attachments:
  1. OSCColorMAX.zip

October 6, 2013 | 8:32 am

I think it’s because you’re forgetting the right-to-left message ordering in max? Your outputs seem to be going 0, 1, 2, 3 when sending out messages.

Also, you can send a straight four-member list to the leftmost inlet of bgcolor, that would help simplify things a bit, too.


Viewing 2 posts - 1 through 2 (of 2 total)