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

ftom~ Reference

Convert frequency to MIDI note numbers at signal-rate

ftom~

Description

ftom~ performs signal-rate frequency (Hz) to MIDI(note-value) conversion.

Examples

What

Arguments

None.

Attributes

base [float]

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

Common Box Attributes

Messages

signal

A signal representing a frequency value. It is converted to a MIDI pitch value (from 0 to 127) and output as a signal.

Output

signal

The MIDI note value that corresponds to the input frequency is output as a signal. When an input frequency falls between two equal tempered pitches, the fractional part of the MIDI value is included.

See Also

Name Description
MIDI MIDI
expr
ftom
mtof
mtof~