Converts a frequency to the closest valid MIDI note and the pitch bend offset in cents. Useful for microtonal playback via standard MIDI.
Distance from that note, in cents, -50 to 50.
Nearest MIDI note number (not clamped to 0-127).
Converts a frequency to the closest valid MIDI note and the pitch bend offset in cents. Useful for microtonal playback via standard MIDI.