]> Shamusworld >> Repos - ardour-manual/blob - include/on-clock-and-time.html
Spelling & grammar fixes
[ardour-manual] / include / on-clock-and-time.html
1
2 <p>
3   <dfn>Synchronization</dfn> in multimedia involves two concepts which are
4   often confused: <dfn>clock</dfn> (or speed) and <dfn>time</dfn> (location
5   in time).
6 </p>
7
8 <p>
9   A <dfn>clock</dfn> determines the speed at which one or more systems
10   operate. In the audio world this is generally referred to as
11   <a href="https://en.wikipedia.org/wiki/Word_clock" title="https://en.wikipedia.org/wiki/Word_clock">Word Clock</a>.
12   It does not carry any absolute reference to a point in time: A clock is
13   used to keep a system's sample rate regular and accurate.
14   Word clock is usually at the frequency of the sample rate&mdash;at 48&nbsp;kHz, its period is about 20&nbsp;μs. Word Clock is the most
15   common sample rate based clock but other clocks do exist such as Black and
16   Burst, Tri-Level and DARS. Sample rates can be derived from these clocks as well.
17 </p>
18
19 <p>
20   Time or <dfn>timecode</dfn> specifies an absolute  position on a timeline,
21   such as <code>01:02:03:04</code> (expressed as Hours:Mins:Secs:Frames). It is
22   actual <em>data</em> and not a clock <em>signal</em> per se.
23   The granularity of timecode is <dfn>Video Frames</dfn> and is an order of
24   magnitude lower than, say, Word Clock which is counted in
25   <dfn>samples</dfn>. A typical frame rate is 25&nbsp;<abbr title="frames
26   per second">fps</abbr> with a period of
27   40&nbsp;ms.
28   In the case of 48&nbsp;kHz and 25&nbsp;fps, there are 1920 audio samples
29   per video frame.
30 </p>
31
32 <p>
33   The concepts of clock and timecode are reflected in JACK and Ardour:
34 </p>
35
36 <p>
37   JACK provides clock synchronization and is not concerned with time code
38   (this is not entirely true, more on jack-transport later).
39   On the software side, jackd provides sample-accurate synchronization
40   between all JACK applications.
41   On the hardware side, JACK uses the clock of the audio-interface.
42   Synchronization of multiple interfaces requires hardware support to sync
43   the clocks.
44   If two interfaces run at different clocks the only way to align the
45   signals is via re-sampling (SRC&mdash;Sample Rate Conversion), which is
46   expensive in terms of CPU usage and may decrease fidelity if done
47   incorrectly.
48 </p>
49
50 <p>
51   Timecode is used to align systems already synchronized by a clock to
52   a common point in time, this is application specific and various
53   standards and methods exist to do this.
54 </p>
55
56 <p class="note">
57   To make things confusing, there are possibilities to synchronize clocks
58   using timecode. e.g. using mechanism called <dfn>jam-sync</dfn> and a
59   <dfn>phase-locked loop</dfn>.
60 </p>
61
62 <p>
63   An interesting point to note is that LTC (Linear Time Code) is a
64   Manchester encoded, frequency modulated signal that carries both
65   clock and time. It is possible to extract absolute position data
66   and speed from it.
67 </p>
68