Mixing 2 matrices for my Monome


    Jan 29 2010 | 9:41 am
    Hello ! This is my first post.
    I'm kind of new user of Max since I reveceived my 40h Monome.
    For my 1st patch, I'd like to build a simple sequencer with 2 matrices. One for the light to indicates time seq (simply flashing each column once), the other to increment (like simply making a beat). Then the 2 matrices goes to the monome to light it.
    1st question : How can I make the first matrix ? It's hard for me to "unlight" previous steps. I've tried using [delay] to turn it off or add a second Metro that "unlight" but the results are not really stable.
    2nd question: I've seen it's possible to export patches as text to paste it here. Can you tell me how ?
    Thanks for your help..
    ps: Scuse my english

    • Jan 29 2010 | 11:55 am
      To flash the columns, you can just use [multislider] with the right settings (bar, horizontal, # of sliders = # of beats in a row, range 0 1 so it acts as an "on/off" only, and Ignore Click on). Try it on top of the [matrixctrl] which is actually dealing with the cells/beats. Set the background and slider colors of the multislider using some amount of transparency (Max 5 only) and you can get a good "highlight column" color.
      With Ignore Click on you'll be able to set the matrixctrl cells underneath as usual---as anywhere else, the mouse will click through to the next UI object in whatever stack you've made. And you can dynamically choose what objects can be clicked, hidden, etc. with "ignoreclick $1" and "hidden $1". This can add a lot to the UI functionality of many objects, depending on how you design your interface.
      To paste text/patches on the Forum, select what you want to convert to code (usually the whole patch, but can be only parts if you want), and choose Edit-->Copy Compressed. It's unreadable, but far shorter than the actual JSON patch code, which would make the forums hardly usable for all the scrolling...
      Either the JSON code or the Compressed bits (include the ----begin---- and ----end---- lines when you copy Compressed code) can be pasted into an empty patch, or use New from Clipboard. Also, if you past Compressed code into a Max [text] object, the JSON version will appear, if the code reads correctly as a patch. I think it's a pretty ideal system for working with and sharing code. And understanding the JSON is straightforward: it's just a list of what objects you have and how they're connected together. Unlike other languages, the logic comes from their "activation" in the patch, rather than being in the code per se.
    • Jan 29 2010 | 6:21 pm
      Thanks for your advice. But it seems to jump a column at each steps (Il think it inc 0 for one step, and 1 for the next one) Also, it erase toggled buttons from the monome. Here is a simplified patch of this issue. Hope it's not a problem posting issues ... By the way, thanks for the trick of Copy compressed.
    • Jan 29 2010 | 8:56 pm
      Sorry, I forgot to loadbang values for counters. The first one has to be set to 1 and the second to 7...
    • Feb 02 2010 | 2:08 pm
      I finally founded how to light steps in a matrix. You just have to select "One non zero Cell per Row" in Inspector of the matrix.
      Now I just want to find a way to mix the 2 matrices. For now, the Toggled cells are erased by the Flash cells. I'm stuck now, I don't really know what to do... Please help.
      Here's a simple patch to understand my issue
    • Feb 02 2010 | 8:55 pm
      matrixctrls won't "mix" like you're envisioning. You'd need to do something different. If it's just for visual feedback, try multislider:
    • Feb 03 2010 | 11:08 am
      Nice but it doesn't light the Monome... I really don't know what to do. Thanks for your help anyway.
    • Feb 04 2010 | 12:05 pm
      I finally found the solution. It was simply using 'inc' value instead of 1 then 0.
      Here is a patch that is what I wanted. A seq that turns on 2 rows with toggled buttons visibles. Then you can multiply this patch for more rows...