Forums > Jitter

setcell message in jit.matrix object


jin
October 23, 2012 | 3:07 am

Hello all.

I want to make 4 corners black.
If I send bang manually, it’s fine. I can get all 4 corners black.
However, if I turn on the metro, only first setcell message from trigger object is effective.

It’s fine if I get rid of all the bangs in message box and get bang from trigger object and connect to jit.matrix.

Thank you advanced
Jin

– Pasted Max Patch, click to expand. –

October 23, 2012 | 3:22 am

just use qmetro instead of metro and it should work



jin
October 23, 2012 | 3:49 am

Thank you Terry.

Yes, qmetro works just fine.

Can you tell me why it’s happening in the first place?


October 23, 2012 | 8:43 am

I had another look at your patch and got rid of the bang messages coming from the message boxes, and now it works without the need to use qmetro (you also needed to have a master render bang sent to the matrix, to ‘push’ the matrix out to the pwindow after your setcell messages):

– Pasted Max Patch, click to expand. –

but to answer your question, I think qmetro puts the bangs into a low-priority queue so that renders to the pwindow are guaranteed to be completed, even if it means making the next bang message wait. In your patch the problem was evidently too many redundant bang messages clogging up the render queue.
– but it’s generally good policy to use qmetro when making jitter patches anyway



jin
October 30, 2012 | 9:36 am

I see….that is the low-priority queue thing…
I always had problem to understand that….
I see now.
Thank you.


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