Forums > MaxMSP

Slow Display Update on Matrixctrl

December 7, 2010 | 12:58 am

Hello,!
I am using a matrixctrl to display data from Cellular Automata but as the patch has got more cpu intensive it has started to skip and isnt displaying whats happening with the CA.

I’m guessing jitter is probably more appropriate.. Is there any way to transfer the matrixctrl data into a jit.window? Is this possible with more than 1 cell state (I have 5 at the moment with different coloured cell images).

I am completely ignorant when it comes to jitter!


December 7, 2010 | 1:50 am

How often are you updating the [matrixctrl]? You might want to look at [jit.conway] for help on CA in jitter, it will get you started at least.


December 7, 2010 | 2:15 am

the speed varies, its runs fine at very fast rates (<50ms) with DSP off but as soon as its on the matrix will skip lots of "frames" when showing the CA.

the jit.conway example file looks like it could be helpful tho, just need to try and understand jitter a bit better


December 7, 2010 | 2:36 am

can you just bypass the matrixctrl and go straight to a jit.matrix? this would update tons faster. of course if you need the UI capabilities of matrixctrl this wouldn’t be as useful. Or, you could have both, then use the UI part once in awhile, hide it otherwise. You can bang matrixctrl and get all the cell values, should be able to populate the jit.matrix in a snap.


December 7, 2010 | 8:31 am

Here’s jit.conway running a matrixctrl, but I don’t think its a very efficient thing to do:

– Pasted Max Patch, click to expand. –

December 7, 2010 | 9:12 am

another way, with just jit.iter/pack/message box. didn’t realize you could do it like this…benchmark testing could be interesting to compare rates? checking fps with matrixctrl hidden/visible changes a lot when you try metro 10.

– Pasted Max Patch, click to expand. –

December 7, 2010 | 10:30 am

Ha, much simpler and more efficient I daresay! I did make that ages ago in my defence ;)


December 7, 2010 | 5:39 pm

ah thanks for that, the matrixctrl I’m having problems with is purley for displaying the CA, I have a seperate one for the input which is proccessed by a CA object I made (I ended up coding my own instead of using the jit.conway so I could have a bit more control).

I see that you have used a coll to enter the "live" co-ordinates, so I guess I can use this method for the CA data, just need to figure out how to have multiple states of single cells represented in the window also (with different colours), jit.fill looks promising, not sure if thats really using it for what its actually for though!


December 7, 2010 | 9:32 pm

For colours you can send the live coordinates to either the red, green or blue plane or a combination to make other colours. Example for you:

– Pasted Max Patch, click to expand. –

December 7, 2010 | 10:16 pm

thats great thanks!


August 26, 2014 | 4:33 am

Hi everyone!

Great patch.
One question, I´m trying to get data position (for a solid object), out of this matrixctrl (attached to the conway function).
How can I get the data from the matrixctrl? I can make it manually, but not when is displayed by the conway object:

– Pasted Max Patch, click to expand. –

Thank you


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