Use the JavaScript TimingInfo object

The TimingInfo object contains timing information that describes the state of the host transport and the current musical tempo and meter. A TimingInfo object can be retrieved by calling GetTimingInfo().

TimingInfo properties

Load the corresponding Tutorial setting to view the script in the Script Editor. This will help you to understand the syntax structure and layout of code and comments. See Use the Script Editor.

Tutorial script 9: NeedsTimingInfo and GetTimingInfo

This example prints the beat position to the console while the transport is running.