Forums > Jitter

jit.window size and position


Ch
October 5, 2010 | 1:47 pm

Hi,

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?

Thanks,
Charles


October 6, 2010 | 1:18 pm

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.



Ch
October 6, 2010 | 2:07 pm

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.


October 8, 2010 | 10:48 am

Hello maxers,

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 …


October 8, 2010 | 2:01 pm

Hello Me,

"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 …


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