midi tuning standard frequency calculator
MIDI Tuning Standard Frequency Calculator guide
A standard Note On message selects a key but cannot express a complete microtuning on its own. For a device with MIDI Tuning Standard support, enter a target frequency to inspect the three-byte pitch field. The result represents the pitch you want assigned. Key number, device ID and message framing belong to the enclosing command.
Play the instrument ↑- Default result
- 45 00 00 MTS pitch
Calculation and units
Convert frequency to the continuous semitone coordinate n = 69 + 12 log2(f/440). Quantize n to units of 1/16384 of a semitone. The integer part forms the first byte. Split the remaining fourteen fractional bits into two seven-bit data bytes, most significant first. Rounding the combined coordinate also handles carry into the next semitone.
Worked examples
Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.
Concert A
Target tuning frequency (Hz) = 440.
45 00 00 MTS pitch. Semitone 69 plus 0/16384 of a semitone · encoded frequency 440 Hz · rounding error 0 cents.
An exact equal-tempered A4 uses MIDI semitone 69 and a fractional field of zero.
Next octave
Target tuning frequency (Hz) = 880.
51 00 00 MTS pitch. Semitone 81 plus 0/16384 of a semitone · encoded frequency 880 Hz · rounding error 0 cents.
Doubling the sounding frequency raises the base semitone by twelve while leaving both fractional bytes zero.
Quarter tone above A
Target tuning frequency (Hz) = 452.892984.
45 40 00 MTS pitch. Semitone 69 plus 8192/16384 of a semitone · encoded frequency 452.89298412 Hz · rounding error 5e-7 cents.
The desired pitch lies about halfway to the next semitone. The middle of the fractional field is a useful decoder check.
Alternate concert pitch
Target tuning frequency (Hz) = 442.
45 0A 06 MTS pitch. Semitone 69 plus 1286/16384 of a semitone · encoded frequency 441.99941433 Hz · rounding error -0.0022939 cents.
Tune an instrument slot to the supplied frequency without changing the global A4 reference used by the encoding.
Bass reference
Target tuning frequency (Hz) = 55.
21 00 00 MTS pitch. Semitone 33 plus 0/16384 of a semitone · encoded frequency 55 Hz · rounding error 0 cents.
The same binary representation works for a bass note. The three bytes describe pitch independently of the key that triggers it.
Fine detune below A
Target tuning frequency (Hz) = 439.9.
44 7F 40 MTS pitch. Semitone 68 plus 16320/16384 of a semitone · encoded frequency 439.90073231 Hz · rounding error 0.002882 cents.
The lower semitone appears in the first byte. The positive fractional part approaches the A above it.
Interpreting the result
Inspect the decoded frequency and cent error alongside the hex bytes. When changing a tuning table, verify how your instrument maps the input key to the entry being edited. A tuning filename or preset slot does not change the fixed 440 Hz reference in this encoding. A value close to a boundary can round to an adjacent integer semitone.
For a reference comparison, encode 440 Hz and then a slightly sharper target. Only the fractional part should change until the encoded semitone boundary is crossed. When a large unexplained change appears in the result, verify whether the input was a frequency in hertz, a MIDI note number, or a cent deviation supplied by a tuning editor. Those inputs describe different quantities.
Measurement and model limits
Check the device’s supported MTS message type before building a packet. Pitch bytes alone do not establish whether a receiver supports real-time changes or requires loading a stored tuning.
Music theory tools → · MIDI 14-Bit CC Calculator → · MIDI Association tuning specification →
Answers before you play
Common questions
Is the first byte the key I press?
It identifies the base semitone of the encoded pitch. The tuning command can assign that pitch to a different key.
What does the fractional field measure?
The fraction is positive and spans one semitone in 16384 steps. One step is about 0.0061 cent.
Why is the top byte triple rejected?
The combination 7F 7F 7F has a reserved meaning in this context. The calculator avoids presenting it as an ordinary frequency.
Is this a complete SysEx message?
It is the pitch field only. Choose the correct message format, device addressing and destination key for the receiving device.