midi song position pointer calculator
MIDI Song Position Pointer Calculator guide
Build a MIDI 1.0 Song Position Pointer message from the number of MIDI beats since the beginning of the song. One MIDI beat in this message means six MIDI clocks, equivalent to one sixteenth note under the standard twenty-four-clocks-per-quarter-note timing convention. The page displays bytes and timing counts without controlling a sequencer.
Play the instrument ↑- Calculation model
- Status byte is F2.
Formula and input units
Status byte is F2. The following two data bytes form a fourteen-bit value: LSB = position AND 127, MSB = floor(position/128). Send LSB first, then MSB. Accepted position values are whole numbers zero through 16,383. Quarter-note count = position/4, and MIDI clock count = position × 6.
Worked examples
The default position 16 encodes as F2 10 00. It represents sixteen six-clock MIDI beats, or four quarter notes and ninety-six MIDI clocks from the start. The byte 10 is hexadecimal sixteen, so it should not be read as the decimal number ten when checking the pointer value.
Position 128 encodes as F2 00 01 because the low seven bits wrap to zero and the next seven-bit group becomes one. The maximum position 16,383 encodes as F2 7F 7F. Position zero is F2 00 00 and refers to the beginning of the song rather than a request to stop playback.
Using the result
Count position from the song origin, with no assumed one-based bar label. In 4/4, one four-quarter-note bar advances the pointer by sixteen MIDI beats. If a sequencer labels its first bar as bar one, the start of that first bar still corresponds to position zero. Keep display numbering separate from elapsed musical time.
For another meter, convert elapsed quarter-note duration rather than copying the numerator as the pointer increment. A 6/8 bar contains three quarter-note durations and advances the pointer by twelve MIDI beats. Meter changes require accumulating the actual duration of the preceding sections; the message itself does not include a time signature.
Checks and comparisons
Decode a displayed message by calculating LSB + 128 × MSB. For F2 01 01, the result is 129 MIDI beats, corresponding to 32.25 quarter notes and 774 MIDI clocks. This check demonstrates why the byte order and seven-bit grouping differ from a conventional big-endian sixteen-bit integer representation.
The boundary between positions 127 and 128 is a useful encoding test: F2 7F 00 becomes F2 00 01. Both data bytes must stay below 80 hexadecimal. A value above 16,383 or a fractional position is rejected rather than truncated, because silent wrapping would point to an unrelated location in the song.
The maximum pointer corresponds to 4,095.75 quarter notes and 98,298 MIDI clocks. Its elapsed duration in seconds depends on tempo and any tempo changes before that position. At a constant 120 quarter notes per minute, one pointer unit lasts 0.125 seconds, but that duration cannot be assumed for a song whose tempo map differs. Preserve the musical unit when handing the value to a synchronization workflow rather than converting it into a fixed timestamp without a tempo reference.
Assumptions and limits
Song Position Pointer is a System Common message and does not carry a MIDI channel. It is separate from Song Select, which chooses a sequence, and from MIDI Time Code, which carries another synchronization format. The pointer is a musical timing location rather than a timestamp in hours, minutes, seconds and frames.
The byte sequence does not by itself start playback. A receiving sequencer decides how to respond and how it coordinates the pointer with Start, Continue, Stop and incoming clocks. Some devices ignore this message or implement a restricted synchronization workflow. The calculator displays the standard encoding and does not claim that a device has moved or begun playing.
Music theory tools → · MIDI Clock Calculator → · MIDI Association message summary →
Answers before you play
Common questions
Is one MIDI beat a quarter note?
For Song Position Pointer, one MIDI beat means six clocks, equivalent to a sixteenth note at twenty-four clocks per quarter note. Four pointer units make one quarter note.
Which byte is sent first?
After F2, send the low seven-bit group first and the high seven-bit group second. The displayed sequence follows that LSB-first message definition.
Can the pointer identify a bar by itself?
It holds elapsed six-clock units. Converting that location to bar and beat labels requires the time signatures and the sequencer numbering convention.
Will generating F2 bytes start playback?
This page only displays the encoding. Playback behavior depends on the receiver and separate synchronization messages; no MIDI device receives data from this calculator.