midi clock calculator
MIDI Clock Calculator guide
Set a MIDI clock generator from a known tempo or compare a capture against the expected message spacing.
Play the instrument ↑- Default result
- At 120 BPM, a quarter lasts 500 ms.
Formula and units
Timing Clock sends 24 messages per quarter note. Multiply BPM by 24 and divide by 60 to get messages per second. Divide 1,000 by that rate for milliseconds between messages.
Worked examples
At 120 BPM, a quarter lasts 500 ms. Twenty-four equally spaced clock intervals fit inside that beat, so each interval is approximately 20.833333 ms and the rate is 48 clocks per second.
At 60 BPM expect 24 pulses per second and approximately 41.666667 ms between them. When a trace contains 25 successive F8 events, it spans 24 intervals. Use the gaps to time one complete quarter note, avoiding an off-by-one when counting markers.
Recover tempo from a captured trace
Suppose twelve completed clock gaps span 300 ms. The average gap is 25 ms, making one quarter 600 ms and the inferred rate 100 BPM. Verify with a longer steady capture. Short windows over a ramp represent only that part of the tempo change. Preserve more precision than your recorder shows before converting back.
On a 4/4 grid, a four-quarter bar contains 96 clock intervals. In 6/8, the dotted-quarter feel spans 36 clock intervals even though the encoding remains tied to written quarter notes. Convert metronome markings when the displayed beat unit changes, or the sending device can run at a plausible yet musically wrong rate.
Separate clock transport from playback state
A trace can contain Start, Continue and Stop messages alongside F8. Count only F8 for tempo. A transport message marks an action and does not replace one of the recurring clock ticks. A receiver may continue to observe clock when its sequencer is stopped, depending on the sender's configuration.
When implementing a clock, schedule intended cumulative positions from a common time origin. At 120 BPM, repeatedly adding rounded 21 ms intervals would produce 504 ms per quarter rather than 500 ms. Use absolute timing and inspect the jitter separately from the average interval. Laptop or USB scheduling jitter can widen the spread without materially shifting the mean tempo.
Check a hardware sequencer at two tempos
Set the master to 80 BPM. The display should give 32 clocks per second and 31.25 ms between messages. Change to 160 BPM and check for 64 clocks per second and 15.625 ms intervals. These two tempi make it easy to spot an accidental factor of two. If the receiving sequencer shows the right displayed BPM but advances at half speed, inspect how its pattern length or step division interprets beat timing.
If you want to check four measures of steady 4/4 from a recorded monitor, count the total of 384 clock intervals and compare them with the duration from the first clock to the clock immediately after the final interval. At 120 BPM that expected duration is eight seconds. A discrepancy can come from missing events or the wrong measurement anchors as well as a rate error. Compare the interval distribution and check the actual transport start location separately.
A dotted-quarter indication of 90 per minute means quarter-note tempo of 135 BPM. The expected clock is 54 messages per second. This case is a better test of meter conversion than starting from a whole-number quarter marking. The MIDI message stream itself can remain unchanged if a DAW simply relabels the beat unit without changing note timings. Compare a second quarter-note reference to verify what actually changed.
Assumptions and limits
The displayed values assume constant BPM. The tool does not send MIDI, start a device, or analyze a recorded MIDI stream.
MIDI Tick Calculator → · GestureSynth music theory tools → · MIDI Association Timing Clock reference →
Answers before you play
Common questions
Is this the same as the PPQ value in a MIDI file?
No. Standard MIDI Files can express ticks per quarter at many resolutions. MIDI Timing Clock is a real-time system message with 24 per quarter. An SMF with 480 ticks per quarter does not imply that a physical MIDI output sends 480 F8 messages per quarter.
What is F8?
Hexadecimal F8 is the one-byte MIDI Timing Clock message. It has no channel and is not followed by data bytes. Serial MIDI traffic can carry it alongside channel messages, so filter by type before computing intervals.
How can I check clock drift?
Measure a stable window at the start and another near the end. Compare pulse gaps and cumulative displacement against the same tempo. An average over the full passage can hide a drift or make a tempo ramp look like a fixed intermediate value.
Why does a one-quarter note event occasionally land between two clock messages?
MIDI notes can have finer placement internally, and playback interfaces schedule different message types independently. The clock describes synchronization, not the exact grid of every note message or the timing resolution of a sequence file.