Max

Output video duration after read

This example shows how to automatically retrieve several information data regarding a loaded video on jit.qt.movie. In this case we are taking advance of the message read filename 1 that is output on the second outlet after a successful file load, and using that to trigger several get messages which will also be output out the second outlet and then routed to their proper place using the route object.

Change size of a UI object

This example shows how you can change the length of a ui object (a slider object in this case) with the patching_rect message. You can use a scale object to get the range of width values you want, and control it with a single float, and then use the ‘$1’ argument in a message box to insert the width value into the patching_rect message.

Using Metro with Transport

When using a tempo-relative timing unit (such as ticks) for metro, rather than the tempo-independent ms, the metro becomes linked to the transport. In such cases, the transport has to be running for the metro to work. This example shows 2 tempo-relative metro objects.

Calculate the range of rslider

This example shows how to get the range of a rslider object. The right outlet of rslider outputs the max value, and the left outlet outputs the min value. In order to calculate the range, simply subtract the min from the max. However, one thing you should not overlook is that the max value comes out of rslider before the min value (because it’s farther to the right).

Countdown

This example shows how to make a countdown progress indicator by progressively filling a circle. The circle is filled with an arc, with a radius coming from the position 12 o’clock (at time 0%). At time 25%, the first upper right quadrant is filled, and so on, until 12 o’clock (at time 100%), when the circle is filled.