transport
transport
Description
Starts and stops the passage of time for objects linked to a transport. The transport object reports time consistent with the time formats used in Max.
Inlets
input [bang, number]
Bang to report current transport state. Non-zero starts, zero stops transport.position [number]
Set the transport to a particular location in ticks.
Outlets
bars [number]
Reports the current position of the transport in bars.
beats [number]
Reports the position of the transport in beats within the current bar.
units [number]
Reports the current position of the transport as units within a beat (ticks).
resolution [number]
Reports the resolution of beats in the transport (480 ticks per beat).
outtempo [number]
Outputs the current tempo in bpm whenever the tempo changes or a bang is received in the left inlet.
outtimesig [list]
Outputs the current time signature as a list whenever it changes or a bang is received in the left inlet.
state [number]
Outputs the current transport state (0 = not active, 1 = active) whenever the state changes or a bang is received in the left inlet.
ticks [number]
Outputs the current transport position as a raw tick value (beats*480) whenever a bang is received in the left inlet.
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
input [bang, number]
Bang to report current transport state. Non-zero starts, zero stops transport.
position [number]
Set the transport to a particular location in ticks.
tempo [number] (default: 120)
Sets the transport tempo in beats per minute (bpm).
timesig [list]
Sets the transport time signature using a list of two numbers. The first number defines the beats in each measure and the second defines which note value is equal to one beat).
See Also
Name | Description |
---|---|
transport | |
beattime~ | |
beatstohz~ | convert beat time (quarter notes) to frequency (Hz) |
beatstoms~ | Convert beat time (quarter notes) to milliseconds. |
beatstosamps~ | Convert beat time (quarter notes) to samples. |
beatstoticks~ | Convert beat time (quarter notes) to ticks. |
metro | metronome |
timesignature | timesignature |
tempo | tempo |
translate | translate |