jit.window size and position
I need to constantly know the size and position of my jit.window, and would like to avoid solutions such as sending "once in a while" ‘getpos’ and ‘getsize’ to it.
Is there an efficient way to know when a jit.window is moved or resized?
This question is both philosophical and practical. When you say "I need to know constantly…", you might want to evaluate what you really mean by "constantly" (on a nanosecondly basis? more often than that? is every 1/44,100 of a second enough, or every millisecond? or every 50 ms? or "whenever x happens"? if so, how soon after x happens do you need to know?) and what you really mean by "need" (if you did have "constant" knowledge, how often would you actually access that information?). The answer to those sorts of questions will tell you when, and by what means, you should trigger the ‘getpos’ and ‘getsize’ messages.
Thanks for your answer.
Well, you’re right, and I definitely can send "getpos" and "getsize" from time to time. It’s what I do at the moment, and it works fine. I just thought there might be a mechanism to be warned every time the window is resized/moved.
Maybe the [route position positionidle] of the help patch is supposed to give that information (?), but I can’t get it to work.
Me too ;
What is this [route position positionidle] ? I can’t get it work on my computer (os 10.4.11 / maxMSP 5.1.5) ; It seems the help patch should be update as even the "getpos" and "getsize" messages are not well documented …
"It seems the help patch should be update as even the "getpos" and "getsize" messages are not well documented …"
oops stupid boy ; i should have read the "Jitter Attributes" chapter in Max Help ;-)
anyway that doesn’t solve the [route position positionidle] question …