What is latency in music?

What is latency?

Recording & Production

The delay between an input event and the corresponding output of an audio or MIDI system. Latency can affect real-time monitoring, recording and performance responsiveness.

What does latency mean?

Latency is the elapsed time between an event entering a system and its corresponding result reaching an output. In music systems this can mean the delay from pressing a MIDI key to hearing a virtual instrument, or from sound entering an audio interface to returning through monitored headphones. The endpoints need to be stated because input, output and round-trip latency measure different paths.

Contributors include audio buffers, converters, drivers, operating-system scheduling and processing that needs stored or future-relative audio, such as lookahead. A smaller buffer generally reduces its contribution but leaves less scheduling margin, which can increase dropouts if the system cannot keep up. Low CPU usage alone does not prove low latency: an algorithm may deliberately delay its output.

Duration of One Audio Buffer

Tbuffer=NfsT_{\mathrm{buffer}}=\frac{N}{f_s}

N is the number of samples in one audio buffer (a positive integer) and f_s > 0 is the sampling rate in samples per second (Hz). The duration T_buffer = N/f_s is measured in seconds; multiplying by 1000 gives milliseconds. Thus 128 samples at 48,000 samples/s occupy 128/48000 s ≈ 0.002667 s = 2.667 ms; 256 samples at the same rate occupy about 5.333 ms. This computes a single block duration, not measured MIDI-to-sound, input-to-output, or round-trip latency. Such paths can include several buffers, input/output converters, driver scheduling, plug-in lookahead and other fixed or variable delays; actual paths and reported figures depend on the driver and hardware.

Examples related to latency

Uses and contexts

Live monitoring, virtual instruments, digital effects, recording alignment, networked audio and interface setup.

Common confusions and distinctions

Delay compensation aligns playback paths by delaying other signals; it cannot make a live input arrive before it exists. Direct monitoring bypasses the DAW audio path but does not necessarily provide the DAW’s effects. Correcting a recording’s placement afterward is different from reducing the delay a performer hears while playing.

Back to the glossary