max/msp + monome - the basics

  • 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)

    couple of questions
    - I didn't have to set the device address in my patch, did I overlook something?
    - how do you resize the matrixctrl object?

  • i tried opening this patch, and the matrixctrl's weren't working, then max/msp crashed.

    i usually just resize the matrixctrl with my mouse.

  • txt isn't working for me... patch attached.

    remove the .doc extension.

  • huh. still not working =X

  • check out the howto folder in the base patches also. there's an osc_howto that should be helpful.

  • actually, it's all working well for me now. this started as asking someone for a VERY basic patch, an hour later I figured it out and decided to answer my own post so others can get started.

    as a n00b max user I'm working on my token 16 step sequencer. the sequencer works great and I pieced together a monome interface section, now I have to marry the two... and make it 128 and 256 friendly, and...

  • re: your question about setting the address, do you mean prefix?

  • it's the message box you send into updsend, there's things like packet length, IP address, port, etc. I think port is the only one I did set up. it might be because I ran _40h_midi, took it apart and built a patch, the address was already set. I haven't shut down the computer and started up the patch to check.

    I haven't played with the prefixes themselves, I got the patch going and am still pushing forward, no time to stop and backtrack.

  • glad you're making good progress!

  • trying to post the patch again it might work this time. can someone try posting a .pat to check if the new forum can handle it? is the text wrapping around weird? every line should start with #

    testing...

    max v2;
    #N vpatcher 4 32 1208 432;
    #P user matrixctrl 233 52 147 147 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 147 147 16 16 9 9 16 16 1 1 48 2 5120 0;
    #P user matrixctrl 37 215 147 147 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 147 147 16 16 9 9 16 16 1 1 48 2 5120 0;
    #P window setfont "Sans Serif" 9.;
    #P newex 155 114 44 9109513 print enc;
    #P newex 96 113 44 9109513 print adc;
    #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 211 218 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 window setfont "Sans Serif" 9.;
    #P window linecount 1;
    #P comment 234 221 123 9109513 type in x y set on/off here;
    #P connect 3 0 5 0;
    #P connect 5 0 4 0;
    #P connect 5 0 18 0;
    #P connect 5 1 16 0;
    #P connect 5 2 17 0;
    #P connect 10 0 12 0;
    #P connect 9 0 12 0;
    #P connect 12 0 8 0;
    #P connect 8 0 11 0;
    #P connect 19 0 11 0;
    #P connect 11 0 6 0;
    #P hidden connect 6 0 7 0;
    #P connect 18 0 19 0;
    #P connect 9 0 11 1;
    #P connect 10 0 11 2;
    #P pop;

  • i made it a .mxb and it seemed to work fine. i don't have my 40h up here right now though.

  • good to know, thanks!

    found a link that describes the file types
    http://www.cycling74.com/forums/index.php?t=msg&goto=88423&rid=0&S=e058cbf60ee3f5f90da62328e6b86c09


    leaving home with no monome???
    for shame.

    :P

  • ok ok ok ! i'm just lazy!

    i am home, and the 40h was in the other room. not even downstairs!

    lazy!

    p.s. i never leave home without my monome.

  • neat i wanna build a max patch from the ground upÂ… consider this thread BOOKMARKED

  • good to hear I'm not the only one.

    the code above does the basic I/O, next step is incorporating things like the VU meters into a basic patch, I'll try that in time, right now I have to focus on stuff for the class I'm taking, but in time...

    oh, and how to make a patch work with the all 3 devices, the 64, 128 and 256...

  • let the kids lucky enough to have a 64, 128 or 256 figure out compatibilty themselves ;)

    just kiddingÂ… that was sheer jealousy