What is clock synchronization in music?

What is clock synchronization?

Recording & Production

The coordination of timing references between digital audio devices. Clock synchronization helps devices process audio samples at consistent rates and prevents timing errors, clicks and other digital artifacts.

What does clock synchronization mean?

In digital audio, clock synchronization coordinates devices to a common sampling-time reference so that their audio streams can be exchanged reliably. Setting two independent devices to “48 kHz” gives the same nominal rate, but their oscillators can still run at slightly different actual rates. Over time, their sample counts drift apart unless a shared reference or another rate-matching method resolves the difference.

A conventional synchronous setup selects one clock source and configures other devices to follow it. The reference can be recovered from a digital audio connection such as ADAT or AES, or supplied through a dedicated word-clock connection. Separate word-clock cabling is therefore not required in every working system. Networked systems may use their own distributed clock protocols.

A clock problem can cause clicks, repeated or missing samples, dropouts, or loss of a valid digital connection. Device indicators may distinguish merely detecting a signal from actually being synchronized with it. Asynchronous sample-rate conversion offers another approach by translating between independent clock domains rather than forcing every source to run from the same oscillator.

Accumulating Sample-Count Difference

ΔN=(f2−f1)t\Delta N=(f_2-f_1)t

f1>0f_1>0 and f2>0f_2>0 are the devices' **actual**, approximately constant sample-frame rates in frames per second, rather than their rounded nominal settings; t≥0t\ge0 is elapsed time in seconds. ΔN=(f2−f1)t\Delta N=(f_2-f_1)t is the *idealized signed* difference in accumulated frame counts, measured in frames, when both counts start from the same time. For 48,000 and 48,001 frames/s, ΔN=60\Delta N=60 frames after 60 seconds. Actual hardware sample counts are integers, and their instantaneous difference is quantized, so the formula gives ideal drift rather than the exact sample at which a receiver clicks, drops a frame or loses lock. It does not describe tempo/MIDI-clock synchronization.

Examples related to clock synchronization

Common confusions and distinctions

Sample-clock synchronization differs from MIDI beat clock, musical tempo sync, and timecode position. Sharing BPM does not synchronize audio samples, while a shared sample clock does not tell two sequencers which bar to play. Clock lock also does not remove converter, buffer, plugin, or cable-path latency.

Back to the glossary