midicnAudio & Music Production 中文

MIDI Latency and Jitter

Latency is a message arriving late; jitter is each arrival being late by a different amount.

A software instrument feels sluggish, a recording lands behind the beat, or notes drift. The cause is often the chain and the buffer, not the sound engine.

The problem

Latency and jitter are easily confused. The first moves a whole passage late, the second makes every note late by a different amount. One can be compensated, the other only reduced.

Protocol or message

MIDI 1.0 runs at 31,250 bits per second, so one byte takes about 320 microseconds and a three-byte message nearly a millisecond. USB MIDI 1.0 class packets travel in one-millisecond frames, and the driver adds timestamps. Latency comes from buffers, drivers and the audio interface; jitter comes from frame alignment and scheduling. Clock jitter makes a follower drift.

Settings and practice

Measure loopback delay before changing the buffer. Use direct monitoring or delay compensation while recording. Do not crush the buffer until it clicks. Put the slowest device last in a chain. Keep one clock master.

What to listen for

A constant offset sounds like dragging; jitter sounds like an unsteady drummer. Bass and kick reveal it first, where a few milliseconds already feel loose.

Common misunderstandings

Latency is not the sound source's fault. A smaller buffer is not always better. A MIDI timestamp is not an audio sample position.

Listen in the library

Piano Sonata in C minor · 1. AllegroC19:59演奏的微时间写成 2647 条速度事件,落点本来就不在网格上Detailsrock · 100 BPM · beat 4/4C12:43100 BPM 的鼓循环只有 5.5% 的音落在十六分网格,律动靠偏移DetailsTristan und Isolde WWV 90C112:3421709 个音符里不到一半对齐十六分网格,速度变化有 40 处Details

All tracks from midicn-lib — inline badge is the license tier (C1 commercial / C2 non-commercial / C3 study only).

Sources

  • MIDI 1.0 串行速率与 USB MIDI 类帧长的公开定义,依规范核查,未抄文本
  • 本库文件的音符落点统计,由本地 SMF 解析脚本核对,数值随文件而定

Used for fact-checking only; all prose is original.