GestureSynth.me

Music calculator

MIDI Time Code Quarter Frame Calculator

Encode a MIDI Time Code label as eight F1 quarter-frame messages. Choose 24, 25, 29.97 drop-frame or 30 fps and check invalid frame labels.

midi time code quarter frame calculator

MIDI Time Code Quarter Frame Calculator guide

If a synchronizer sends several F1 messages before the whole time display is known, it is using MIDI Time Code quarter frames. Enter the position written on the transport and select its timecode format. Read the eight hex pairs in forward transmission order. Each pair contains a status byte and one data byte.

Play the instrument ↑
Default result
F1 04 · F1 10 · F1 23 · F1 30 · F1 42 · F1 50 · F1 61 · F1 72

Calculation and units

For each message, the data byte's upper nibble tells the receiver which piece of the time label follows. The low nibble carries data from frame, seconds, minutes or hours. Type seven also carries the rate bits. The first four messages describe frames and seconds; the remaining four complete minutes, hours and format. This calculator encodes the entered label without adding a chase offset.

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.

25 fps example

Hours = 1 · Minutes = 2 · Seconds = 3 · Frame number = 4 · Timecode rate = 25 fps.

F1 04 · F1 10 · F1 23 · F1 30 · F1 42 · F1 50 · F1 61 · F1 72. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

Read the eight F1 pairs from left to right. Each type carries only part of the time label.

Film rate

Hours = 1 · Minutes = 2 · Seconds = 3 · Frame number = 4 · Timecode rate = 24 fps.

F1 04 · F1 10 · F1 23 · F1 30 · F1 42 · F1 50 · F1 61 · F1 70. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

The time fields match the first example. Only the rate bits inside the hours-high message change.

Late frame at 30 fps

Hours = 0 · Minutes = 0 · Seconds = 0 · Frame number = 29 · Timecode rate = 30 fps.

F1 0D · F1 11 · F1 20 · F1 30 · F1 40 · F1 50 · F1 60 · F1 76. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

Frame 29 is valid at thirty frames per second. Its low and high nibbles travel in different messages.

Drop-frame minute boundary

Hours = 0 · Minutes = 1 · Seconds = 0 · Frame number = 2 · Timecode rate = 29.97 drop-frame.

F1 02 · F1 10 · F1 20 · F1 30 · F1 41 · F1 50 · F1 60 · F1 74. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

This is the first valid label of minute one. The preceding two frame labels are skipped, while picture frames are preserved.

Tenth-minute exception

Hours = 0 · Minutes = 10 · Seconds = 0 · Frame number = 0 · Timecode rate = 29.97 drop-frame.

F1 00 · F1 10 · F1 20 · F1 30 · F1 4A · F1 50 · F1 60 · F1 74. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

Minute ten allows frame zero. Check this exception before flagging a valid edit point as malformed.

Last label of the day

Hours = 23 · Minutes = 59 · Seconds = 59 · Frame number = 23 · Timecode rate = 24 fps.

F1 07 · F1 11 · F1 2B · F1 33 · F1 4B · F1 53 · F1 67 · F1 71. Eight F1 messages in forward type order 0–7. They describe the entered label and span two frame periods at four messages per frame; no transport latency adjustment was added.

The hour-high nibble carries the upper hour bit. A following day rolls the displayed time back to zero.

Interpreting the result

At four quarter-frame messages per frame, collecting all eight pieces takes two frame periods. Receivers account for transport direction and timing when presenting a running position. Drop-frame numbering at 29.97 skips frame labels 00 and 01 at each minute boundary except minutes divisible by ten. The frames of video still exist.

To check a captured stream, group messages by their type nibble and compare the eight resulting fields with the label being transmitted. A change between successive captured groups can be normal while the transport advances. At a fixed label the same eight input fields should encode identically each time.

Measurement and model limits

If a capture begins in the middle of a message cycle, use the message type nibble to identify the fields. Do not assume the first arriving F1 contains the low frame bits.

Answers before you play

Common questions

Are these MIDI beat-clock messages?

MIDI Time Code carries time labels, independent of tempo. Beat clock uses timing pulses tied to quarter-note tempo.

Why does one minute and zero frames fail in drop-frame?

At minute one, second zero, the first valid frame label is 02. At minute ten the labels start at 00 again.

Does this send data to a MIDI port?

The calculator displays the bytes for inspection. It does not connect to a device or start a transport.

Can I use the result for reverse playback?

The byte list is in forward type order. Reverse playback changes the message order and the receiver's chase logic.