RNBO Objects & Operators metro
Open Help

metro

metronome

Description

Output a bang message at regular intervals. Can be synchronized to an internal or external transport.

Arguments

interval [number]

Optional

Set the metronome interval. When typed as a box argument, this can be either a millisecond value or a Max-style note value . Sending a number to the right inlet will set a new interval for the metro in milliseconds.

Inlets

on [number]

A 0 or 1 in the left inlet will turn the metro off or on.

interval [number]

Set the metronome interval. When typed as a box argument, this can be either a millisecond value or a Max-style note value . Sending a number to the right inlet will set a new interval for the metro in milliseconds.

Outlets

tickout [bang]

metronome output

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

lock [number] (default: 0)

Setting the lock attribute to 1 synchronizes the behavior of the metro object to a transport. The metro will follow changes to the tempo and time signature of the associated transport, as well as the on/off state. The transport can be an internal transport object or the external transport of the host environment (i.e., the Max Global Transport or Live transport).

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

interval [number]

Set the metronome interval. When typed as a box argument, this can be either a millisecond value or a Max-style note value . Sending a number to the right inlet will set a new interval for the metro in milliseconds.

on [number]

A 0 or 1 in the left inlet will turn the metro off or on.

See Also

Name Description
beattime report current beattime
beatstoms Convert beat time (quarter notes) to milliseconds.
hztoms Convert frequency (Hz) to ms.
sampstoms Convert samples to milliseconds.
tickstoms Convert ticks to milliseconds.
timesignature timesignature
tempo tempo
translate translate
transport transport