Lemur Switches to Matrixctrl

    Feb 12 2008 | 7:06 am
    Hello all
    this is a small patch i wrote to convert switches info from a lemur to a max matrixctrl object.
    The switch object is a grid of button sending a list of 0 and 1 values, corresponding to the state of each button. (4 x 4 switches = array of 16 numbers etc...)
    The 2 arguments of my object are the dimensions of the switch array (x and y)
    For some reason, it's working fine up to 9 x 9 switches, but gives a list formatting error when you reach 10 x 10 switch.
    I can't figure why.
    Any ideas would be welcome !
    Thanks in advance.

    • Feb 12 2008 | 7:46 am
    • Feb 12 2008 | 2:52 pm
      Hi, thanks for your reply
      Unfortunately your abstraction doesn't seem to work either ;-)
      Somebody on JM forum suggested it could be a limitation of the zl group object (max 300 value at once ?), but i can't find any mention of this in the manuals...
      I'll try another approach then...
    • Feb 13 2008 | 8:26 am
    • Apr 24 2013 | 6:10 pm
      Hello, I'm having trouble with this same issue.
      Lemur 'Switches' output a list of on/off values the length being the number of switches. A 2x2 switch matrix with only the first switch 'on' therefore outputs: 1 0 0 0. There is not differentiation between rows/cols. I would like to use this list to turn on the corresponding buttons on a MatricCtrl object of the same size..
      I have tried all manner of funneling and unpacking and repacking and attempts to modulo. This is frustrating as I know it is simple and can imagine doing it very quickly in text code.
      For the sake of conversation, posting one iteration below - *this doesn't work and is not how to accomplish what I want* - (and it may seem crazed!).
    • Apr 24 2013 | 7:07 pm
      This is a strange way to do it but I think it does what you need:
    • Apr 24 2013 | 7:23 pm
      Edit: Here's a better version without the cellbock:
    • Apr 24 2013 | 7:29 pm
      Haha another version with even less objects:
    • Apr 24 2013 | 9:55 pm
      hehe, I like using Jitter for this. Brave!
      Here's a "normal" way of doing it. This can easily be abstracted by the way, so you just specify the size of the matrix you're filling.
    • Apr 24 2013 | 10:07 pm
      Wetterberg: Ah that's better indeed, I've been doing way too much Jitter lately :P
    • Apr 24 2013 | 10:28 pm
      There is no such thing as too much Jitter!!! :-D
    • Apr 25 2013 | 3:55 am
      Thanks, Guys! Will give 'em all a shot. Have a good night, day and the rest.
    • Apr 25 2013 | 6:34 am
      As an aside, do note that if you're building a sequencer, then matrixctl isn't really ideal, at least in my opinion.
      Slicing the list up (with zl slice 16, for instance) and feeding it to live.step in mode 4 is what I'm building in right now, it's really powerful.