posted by tonedeft (tonedeft)
on 25.09.2007 07:35
I took some time and got a basic max/msp patch worked out. it does two 
things.
1 - prints the received 3 number message (x, y, on/off)
2 - has 3 buttons to use with the lights (x, y, on/off)

the rest is up to you.  the output of the grid on the left is fed to the 
input on the right, you might want to break that line to start tweaking.



max v2;
#N vpatcher 4 32 1208 432;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 155 114 44 9109513 print enc;
#P newex 96 113 44 9109513 print adc;
#P user matrixctrl 232 36 162 162 matrix.png MatrixDefaultBkgnd.pct 162 
162 10 10 16 16 10 10 1 1 0 2 5120 0;
#P user matrixctrl 52 209 162 162 matrix.png MatrixDefaultBkgnd.pct 162 
162 10 10 16 16 10 10 1 1 0 2 5120 0;
#P window setfont "Sans Serif" 20.;
#P window linecount 2;
#P comment 335 274 100 9109524 Send messages;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 327 237 36 9109513 on/off;
#P comment 274 237 36 9109513 Y;
#P button 307 206 15 0;
#P newex 232 278 52 9109513 pack 0 0 0;
#P toggle 335 252 15 0;
#P number 274 252 35 9 0 7 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 232 252 35 9 0 7 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 232 347 115 9109513 udpsend localhost 8080;
#P newex 232 308 91 9109513 prepend /test/led;
#B color 5;
#P newex 37 71 187 9109513 route /test/press /test/adc /test/enc;
#P newex 37 113 52 9109513 print press;
#P newex 37 38 80 9109513 udpreceive 8000;
#P comment 232 237 36 9109513 X;
#P window setfont "Sans Serif" 20.;
#P window linecount 2;
#P comment 37 144 100 9109524 Read messages;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 4 0 15 0;
#P connect 4 1 17 0;
#P connect 4 2 18 0;
#P connect 15 0 16 0;
#P connect 11 0 7 0;
#P connect 16 0 10 0;
#P connect 7 0 10 0;
#P connect 10 0 5 0;
#P hidden connect 5 0 6 0;
#P connect 8 0 10 1;
#P connect 9 0 10 2;
#P connect 9 0 11 0;
#P connect 8 0 11 0;
#P pop;
posted by tonedeft (tonedeft)
on 25.09.2007 10:11
what's not apparent to me is the use of prefixes, is that to sort data 
out with something like the sel object?

also, in my test app, I didn't have to set the address.  maybe it's 
because it was set when I took apart _40h_test?  dunno, it's getting 
late...