midi transmission time calculator
MIDI Transmission Time Calculator guide
A chord can be timestamped as a single gesture in a sequencer yet take finite time to leave a traditional MIDI output. Count the bytes that are actually transmitted and enter the number of repeated units. The result isolates the serial portion of the delay so you can compare it with scheduling or sound-engine latency.
Play the instrument ↑- Default result
- 0.96 ms serial wire time
Calculation and units
Classic MIDI DIN runs at 31,250 bits per second. Each byte uses a start bit, eight data bits and a stop bit. Ten framed bits therefore occupy 320 microseconds. Multiply the framed length by the total number of bytes, including status bytes whenever they appear on the wire.
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.
One full Note On
Bytes on the wire = 3 · Message repetitions = 1.
0.96 ms serial wire time. 3 bytes · 30 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
Status, key number and velocity occupy three complete bytes. The reported time ends when the final framed bit has left a classic MIDI DIN transmitter.
Ten full Note On messages
Bytes on the wire = 3 · Message repetitions = 10.
9.6 ms serial wire time. 30 bytes · 300 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
This models a ten-note burst with explicit status bytes each time. The last event necessarily follows the first because the electrical link serializes the messages.
Single realtime byte
Bytes on the wire = 1 · Message repetitions = 1.
0.32 ms serial wire time. 1 bytes · 10 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
A timing clock message consumes one framed byte. Other traffic can still delay when that byte reaches the transmitter, which is separate from wire time.
Two-byte channel message
Bytes on the wire = 2 · Message repetitions = 1.
0.64 ms serial wire time. 2 bytes · 20 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
A Program Change has a status and one data byte. Its physical duration differs from a fully framed three-byte control change or note message.
Packed burst with running status
Bytes on the wire = 21 · Message repetitions = 1.
6.72 ms serial wire time. 21 bytes · 210 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
Ten consecutive Note On events on one channel may need one status plus twenty data bytes. Enter that observed total once to model the compact burst.
A longer SysEx packet
Bytes on the wire = 256 · Message repetitions = 1.
81.92 ms serial wire time. 256 bytes · 2560 framed bits at 31250 bit/s · each byte takes 320 µs. Classic MIDI DIN serialization only; additional waits and device response are excluded.
Count both framing message bytes and every payload byte when they appear on the cable. A receiver's inter-packet pauses add time outside the serial estimate.
Interpreting the result
For a captured burst, either enter its total byte count with one repetition or enter the length of a genuinely repeated message and its repeat count. Count running-status compression from the actual stream. Separate messages interleaved between note data can affect arrival order and elapsed time.
Measurement and model limits
The calculation assumes continuous back-to-back serialization at the standard rate. USB MIDI packets, Bluetooth scheduling, interface buffers, application timestamps and receiver processing involve other delays. A SysEx device may require a pause between chunks and that pause must be added separately.
Music theory tools → · MIDI Note On Calculator → · MIDI electrical specification update →
Answers before you play
Common questions
Are MIDI data bytes only seven bits long?
Their high bit is clear for ordinary MIDI data, but the serial link still sends a full eight-bit byte with a start and stop bit.
How long does one Note On take?
A complete status, key and velocity message occupies three bytes. Running status can shorten following events that share the active status.
Can realtime clock appear inside another message?
MIDI realtime bytes may be interleaved. Count every byte occupying the link when measuring the elapsed time of the surrounding traffic.
Does this predict audible response time?
It establishes the serial wire-time contribution. Scanning a keyboard, buffering an event and producing the first audio sample can add further delays.