Quickest way to find current frame in jit.movie

aceslowman's icon

Since there doesn't seem to be any built-in way to query the jit.movie object to find the current frame on bang, what would be the most efficient way of accomplishing this? (It would be great to have a getFrame message or something). What I can seem to get out of it is I can take in the current time, the total length in time, and then calculate what frame I would be at based on the fps, but it seems to be a little slow. Any advice?

aceslowman's icon

And what do I do considering changes in rate, or a metro object going at a different rate than the frame rate?

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

probably simplest way:

aceslowman's icon

Really great answer, exactly what I needed.