A newer version of Max is available. Click here to access the latest version of the documentation

transport Reference

Control a master clock

transport

Description

Starts and stops the passage of time for objects linked to a transport. If given a name, the transport object will control a time context of the given name, otherwise it will control Max's master transport. The transport object reports time consistent with the time formats used in Max.

Examples

Discussion

Note for Max For Live Users: Currently translating a beat time song position in Max for Live will only take the global tempo into account and might not be accurate when the Live set contains tempo changes.

Arguments

None.

Attributes

clocksource [symbol]

The current timing source for the transport. The default source is Max's internal clock but other timing sources such as ReWire may also be used.

name [symbol]

There can be multiple named transports running simultaneously. By default, a transport will be associated with Max's global transport. If a name is provided then a new transport is created with that name and can be referenced using this attribute.

resetbarcount [int]

Toggles whether the bar/beat/unit counter advances to the beginning of the next measure when a time signature change is received. By default, this is disabled (0).

tempo [float]

Sets the tempo in beats-per-minute for this transport.

Common Box Attributes

Messages

bang

Report current state

int

Arguments

input [int]
In left inlet: toggle whether or not the transport is running on or off
In right inlet: set the current position of the transport in ticks

float

Arguments

input [float]
In left inlet: toggle whether or not the transport is running on or off
In right inlet: set the current position of the transport in ticks

list

Arguments

position [list]
Set the current position of the transport using a time unit.

(mouse)

Double-clicking on the transport object opens the GlobalTransport window.

dump

Causes a report of the current state of the transport to be sent to the Max Console.

getclocksources

Causes a list of active clock sources to be sent out the right outlet.

timesig

Arguments

beats [list]
value [list]
Set the time signature for this transport using two numbers. The default is 4 4.

See Also

Name Description
Timing and Sequencing Events Timing and Sequencing Events
metro
translate
timepoint
when
Max Basic Tutorial 19: Timing Max Basic Tutorial 19: Timing