ftom~

Convert frequency to MIDI note numbers at signal-rate

Description

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

Arguments

None.

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.

Attributes

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

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.

Examples

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