


So with a little arithmetic, we can figure out the relationship between milliseconds, QuickTime time units, and metric units of the music. In this case, we’re assuming that we already know the timescale of the movie, and that we’re synchronizing it with some music with a tempo of 75 beats per minute. This can be useful for realtime editing of the movie itself, using the current time location to decide to leap to another location in the movie. If you send the gettime message at regular reliable intervals of time, you can use the resulting time number to test for a particular time (or range of times), and thus can take a particular action in your program at the desired time in a movie. The report comes out of the right outlet of jit.qt.movie as the word ‘time’ followed by the current time.

You can use the gettime message to ask jit.qt.movie for a report of its video’s current time location (in QuickTime time units).
