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


Convert frequency to MIDI note numbers at signal-rate


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




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


Name Type g/s Description
base float Sets the "base frequency" used when converting frequency values (e.g., A = 440.). The default is 440.

Information for box attributes common to all objects


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.


What'll it be? Contemporary Classical or Baroque?

See Also

Name Description
expr Evaluate a mathematical expression
ftom Convert frequency to a MIDI note number
mtof Convert a MIDI note number to frequency
mtof~ Convert a MIDI note number to frequency at signal rate