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

mtof Reference

Convert a MIDI note number to frequency

mtof

Description

Performs MIDI-note-number to frequency conversion. Frequency is reported in as a float in Hertz (Hz).

Examples

Use MIDI note number to provide frequency value for an oscillator

Arguments

None.

Attributes

base [float]

Sets the "base frequency" used when calculating frequency values (e.g., A = 440.). The default base frequency is 440 Hz.

Common Box Attributes

Messages

int

Arguments

MIDI-note-number [int]
A MIDI note number value from 0 to 127. The corresponding frequency is output. The output value is dependent on the base frequency attribute.

float

Arguments

MIDI-note-number [float]
A MIDI note number value from 0 to 127. The corresponding frequency is sent out the outlet. The output value is dependent on the base frequency attribute.

list

Arguments

MIDI note list [list]
Generates a list of frequency values corresponding to the MIDI note values of incoming list elements.

Output

float

The frequency corresponding to the received MIDI pitch value.

See Also

Name Description
MIDI MIDI
expr
ftom