ardour-tutorial/en/introduction/what-is-digital-audio/index.html

68 lines
23 KiB
HTML
Raw Normal View History

<!doctype html><html lang=en class="js csstransforms3d"><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=generator content="Hugo 0.96.0"><meta name=description content="What is digital audio?"><link rel=icon href=/ardour-tutorial/images/favicon.png type=image/png><title>What is digital audio? :: Ardour tutorial</title><link href=/ardour-tutorial/css/nucleus.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/fontawesome-all.min.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/hybrid.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/featherlight.min.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/perfect-scrollbar.min.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/auto-complete.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/atom-one-dark-reasonable.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/theme.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/tabs.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/hugo-theme.css?1648461546 rel=stylesheet><link href=/ardour-tutorial/css/theme-blue.css?1648461546 rel=stylesheet><script src=/ardour-tutorial/js/jquery-3.3.1.min.js?1648461546></script><style>:root #header+#content>#left>#rlblock_left{display:none!important}:not(pre)>code+span.copy-to-clipboard{display:none}</style></head><body data-url=/ardour-tutorial/en/introduction/what-is-digital-audio/><nav id=sidebar><div id=header-wrapper><div id=header><a id=logo href=/ardour-tutorial/en/><svg id="Layer_1" width="92" height="80" viewBox="0 0 92 80" enable-background="new 0 0 92 80" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs6"/><path id="path6984" fill="#c61f40" d="M45.586.44-.082 79.558c3.356.0 2.828-2.382 4.417-2.382 1.681.004 1.367 1.19 2.951 1.19.814.0 1.467-.806 1.466-2.804.0-2.664.661-4.017 1.476-4.017s1.476 1.187 1.476 2.372c0 1.492.662 2.678 1.476 2.678.814.0 1.477-2.019 1.477-4.512l-.01-2.857c0-3.447.661-6.24 1.476-6.24s1.477 1.207 1.476 5.112c0 3.104.662 6.198 1.476 6.198s1.478-3.602 1.477-9.382c0-6.68.65-10.996 1.465-10.996s1.477 4.32 1.476 8.582c0 4.977.662 9.878 1.477 9.878s1.477-4.902 1.476-11.701c0-7.302.651-12.609 1.466-12.609.813.0 1.477 5.308 1.476 11.406.0 6.4.661 11.955 1.476 11.955s1.476-5.551 1.476-12.661c0-7.109.651-12.766 1.466-12.766s1.476 5.656 1.476 12.649c0 6.994.662 12.641 1.476 12.641s1.477-5.65 1.477-12.397c0-6.602.65-12.135 1.465-12.135s1.476 5.53 1.476 12.746c0 6.952.663 12.271 1.477 12.271.813.0 1.477-5.318 1.476-11.332.0-5.651.651-10.669 1.465-10.669s1.478 5.027 1.477 11.882c0 6.413.661 11.068 1.476 11.068s1.477-4.657 1.476-9.667c0-4.514.651-8.781 1.466-8.781s1.477 4.265 1.476 10.32c0 5.522.662 9.351 1.476 9.351s1.477-3.825 1.477-7.727c0-3.353.65-6.737 1.465-6.737s1.476 3.382 1.476 8.382c0 4.449.662 7.389 1.477 7.389s1.476-2.586 1.476-5.407c0-2.911.662-5.145 1.476-5.145s1.466 2.501 1.466 6.356c0 3.345.661 5.439 1.476 5.439s1.476-1.732 1.476-3.479c0-1.801.662-3.563 1.477-3.563.813.0 1.465 1.703 1.465 4.459.0 2.317.662 3.668 1.477 3.668s1.477-.941 1.477-2.034c0-1.438.661-2.098 1.476-2.098s1.466.987 1.466 2.814c0 1.44.661 2.192 1.476 2.192 1.539.0 1.331-1.917 2.951-1.929 1.773.0 1.253 2.571 2.941 2.571 1.217.0 2.159-.469 2.952-.474 1.316.0 1.408.928 4.416.928L45.588.44H45.586z" style="fill:#000"/></svg></a></div><div class=searchbox><label for=search-by><i class="fas fa-search"></i></label>
<input data-search-input id=search-by type=search placeholder=Search...>
<span data-search-clear><i class="fas fa-times"></i></span></div><script type=text/javascript src=/ardour-tutorial/js/lunr.min.js?1648461546></script>
<script type=text/javascript src=/ardour-tutorial/js/auto-complete.js?1648461546></script>
<script type=text/javascript>var baseurl="https://prokoudine.github.io/ardour-tutorial/en"</script><script type=text/javascript src=/ardour-tutorial/js/search.js?1648461546></script></div><section id=homelinks><ul><li><a class=padding href=/ardour-tutorial/en/><i class="fas fa-home"></i> Home</a></li></ul></section><div class=highlightable><ul class=topics><li data-nav-id=/ardour-tutorial/en/introduction/ title=Introduction class="dd-item
parent"><a href=/ardour-tutorial/en/introduction/><b>1. </b>Introduction</a><ul><li data-nav-id=/ardour-tutorial/en/introduction/conventions/ title=Conventions class=dd-item><a href=/ardour-tutorial/en/introduction/conventions/>Conventions</a></li><li data-nav-id=/ardour-tutorial/en/introduction/what-is-digital-audio/ title="What is digital audio?" class="dd-item active"><a href=/ardour-tutorial/en/introduction/what-is-digital-audio/>What is digital audio?</a></li></ul></li><li data-nav-id=/ardour-tutorial/en/getting-started/ title="Getting started" class=dd-item><a href=/ardour-tutorial/en/getting-started/><b>2. </b>Getting started</a><ul><li data-nav-id=/ardour-tutorial/en/getting-started/starting-ardour-on-ubuntu/ title="Starting Ardour" class=dd-item><a href=/ardour-tutorial/en/getting-started/starting-ardour-on-ubuntu/>Starting Ardour</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/overview-of-the-interface/ title="Overview of the Interface" class=dd-item><a href=/ardour-tutorial/en/getting-started/overview-of-the-interface/>Overview of the Interface</a><ul><li data-nav-id=/ardour-tutorial/en/getting-started/overview-of-the-interface/editor-window/ title="Editor window" class=dd-item><a href=/ardour-tutorial/en/getting-started/overview-of-the-interface/editor-window/>Editor window</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/overview-of-the-interface/mixer-window/ title="Mixer window" class=dd-item><a href=/ardour-tutorial/en/getting-started/overview-of-the-interface/mixer-window/>Mixer window</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/overview-of-the-interface/recorder-window/ title="Recorder window" class=dd-item><a href=/ardour-tutorial/en/getting-started/overview-of-the-interface/recorder-window/>Recorder window</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/overview-of-the-interface/cue-window/ title="Cue window" class=dd-item><a href=/ardour-tutorial/en/getting-started/overview-of-the-interface/cue-window/>Cue window</a></li></ul></li><li data-nav-id=/ardour-tutorial/en/getting-started/creating-tracks-and-busses/ title="Creating tracks and busses" class=dd-item><a href=/ardour-tutorial/en/getting-started/creating-tracks-and-busses/>Creating tracks and busses</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/importing-audio/ title="Importing audio" class=dd-item><a href=/ardour-tutorial/en/getting-started/importing-audio/>Importing audio</a></li><li data-nav-id=/ardour-tutorial/en/getting-started/setting-up-the-timeline/ title="Setting up the timeline" class=dd-item><a href=/ardour-tutorial/en/getting-started/setting-up-the-timeline/>Setting up the timeline</a></li></ul></li><li data-nav-id=/ardour-tutorial/en/recording-audio/ title=Recording class=dd-item><a href=/ardour-tutorial/en/recording-audio/><b>3. </b>Recording</a><ul><li data-nav-id=/ardour-tutorial/en/recording-audio/recording-audio/ title="Recording audio" class=dd-item><a href=/ardour-tutorial/en/recording-audio/recording-audio/>Recording audio</a></li><li data-nav-id=/ardour-tutorial/en/recording-audio/understanding-routing/ title="Understanding routing" class=dd-item><a href=/ardour-tutorial/en/recording-audio/understanding-routing/>Understanding routing</a></li><li data-nav-id=/ardour-tutorial/en/recording-audio/routing-between-applications/ title="Routing between applications" class=dd-item><a href=/ardour-tutorial/en/recording-audio/routing-between-applications/>Routing between applications</a></li></ul></li><li data-nav-id=/ardour-tutorial/en/editing-sessions/ title="Editing sessions" class=dd-item><a href=/ardour-tutorial/en/editing-sessions/><b>4. </b>Editing sessions</a><ul><li data-nav-id=/ardour-tutorial/en/editing-sessions/non-destructive-editing/ title="Non-destructive editing" class=dd-item><a href=/ardour-tutorial/en/editing-sessions/non-destructive-editing/>Non-destructive editing</a></li><li data-nav-id=/ardour-tutorial/en/editing-sessions/arranging-tracks/ title="Arranging tracks" class=dd-item><a href=/ardour-tutorial/en/editing-sessions/arranging-tracks/>Arrangi
<span id=toc-menu><i class="fas fa-list-alt"></i></span>
<span class=links><a href=/ardour-tutorial/en/>Home</a> > <a href=/ardour-tutorial/en/introduction/>Introduction</a> > What is digital audio?</span></div><div class=progress><div class=wrapper><nav id=TableOfContents><ul><li><a href=#frequency-and-gain>Frequency and Gain</a></li><li><a href=#peaks-and-clipping>Peaks and Clipping</a></li><li><a href=#sample-rate-and-bit-depth>Sample Rate and Bit Depth</a></li></ul></nav></div></div></div></div><div id=head-tags></div><div id=body-inner><h1>What is digital audio?</h1><p><strong>Ardour</strong> is a digital audio workstation (DAW). Beforing using it to record and
edit sound, it might be useful to review how digital audio works.</p><p><img src=en/adc-dac.svg alt=analogue-digital></p><p>The diagram above shows how sound travels to and from your computer. The
&ldquo;Analogue to Digital Conversion&rdquo; (ADC) and the &ldquo;Digital to Analogue
Conversion&rdquo; (DAC) are done by the sound card or audio interface. The digital
system in this case is your computer running Ardour.</p><h2 id=frequency-and-gain>Frequency and Gain</h2><p>Imagine a loudspeaker. To move the air in front of it and make sound,
the membrane of the speaker must vibrate from its center position (at
rest) backwards and forwards.</p><p>The number of times the membrane vibrates each second determines the
<em>frequency</em> (the note, or <em>pitch</em>) of the sound you hear. The distance the
membrane travels from its resting point determines the <em>amplitude</em> (the volume,
or <em>loudness</em>) of the sound. Normally, we measure frequency in <em>Hertz</em> (Hz) and
amplitude in <em>decibels</em> (dB).</p><p><img src=en/membrane-vibration.svg alt="speaker membrane vibration"></p><p>Check out the great animation on this page illustrating this process:</p><div style=position:relative;padding-bottom:56.25%;height:0;overflow:hidden><iframe src=https://www.youtube.com/embed/RxdFP31QYAg style=position:absolute;top:0;left:0;width:100%;height:100%;border:0 allowfullscreen title="YouTube Video"></iframe></div><p>A microphone works like a loudspeaker in reverse: vibrations in the air cause
its membrane to vibrate. The microphone turns these acoustic vibrations into
an electrical current. If you plug this microphone into a computer&rsquo;s sound
card and start recording, the sound card makes thousands of measurements of
this electric current per second and records them as numbers. The number of
<em>samples</em> (i.e. measurements) made per second is called the <em>sample rate</em>, and
the number of possible values each sample can have is called the <em>bit depth</em>.
The combination of sample rate and bit depth indicates how closely the digital
signal can reproduce the sound it has recorded.</p><h2 id=peaks-and-clipping>Peaks and Clipping</h2><p>When Ardour displays the samples which have been recorded, they appear as the
<em>waveform</em> we see below. The center horizontal line indicates the membrane of
the speaker at rest, and the <em>peaks</em> of the waveform indicate the maximum
<em>amplitude</em>.</p><p><img src=en/Ardour4_Digital_Audio_Waveform.png alt=waveform></p><p>If we take a waveform and increase its amplitude a lot, some of the peaks may now fall outside the range that the computer can represent digitally. The computer&rsquo;s inability to represent peaks outside the range of amplitude is called <em>clipping</em>, which results in a permanent loss of digital information,
as well as a change in the sound quality which is recognizable as
<em>distortion</em>. Ardour marks clipped peaks with the color red, as can be seen in
the image below.</p><p><img src=en/Ardour4_Digital_Audio_Clipping2.png alt=clipping></p><p>In the image above, one can also see the <em>mixer strip</em> on the far left,
which gives a running measurement of the peaks, as well as an indication
at the top of the <em>peak meters</em> showing the maximum peak so far. The red number indicates clipping has occurred.</p><div class="notices tip"><p>Clipping often can happen at the time of recording if you set your microphone levels too high.</p></div><p>The range of decibels between the region&rsquo;s maximum peak and the clipping point
is commonly referred to as <em>headroom</em>, and common recording practice is to
keep approximately 3 to 6 decibels of headroom between the maximum of your
signal and the clipping point, with the clipping point itself being
represented as 0 dB (zero decibels). In other words, an audio region with a
comfortable amount of Headroom would have its maximum peaks between 6 dB and
3 dB.</p><p>Also, because the peaks of audio signals add together, care must be taken when
<em>mixing</em> several sources together to keep the combined signals from clipping.</p><h2 id=sample-rate-and-bit-depth>Sample Rate and Bit Depth</h2><p>To make audio playable on a compact disc, for example, the computer must
generate 44,100 samples per second. The sample rate determines the highest
frequency which can be recorded or played back by the computer. A sampling
rate of 44.1 kHz means that the highest frequency which can be represented is
just under 22.05 kHz. Since normal human hearing lies within the range of
approximately 20 Hz to 20 kHz, this is commonly accepted as a reasonable
sample rate. Other commonly used sample rates include 48 kHz (e.g.
multi-effects pedals) or 96 kHz (DVD audio).</p><p>Each sample is recorded as a 16-bit number. One <em>bit</em> is a piece of
information which is either 0 or 1. If there are 16 bits together to make one
sample, then there are 2^16 (65,536) possible values for each sample.</p><p>Thus, we can say that CD-quality audio has a sample rate of 44.1 kHz and
a <em>bit depth</em> of 16 bits. Professional music recordings are usually mixed
using 24 bits to preserve the highest amount of detail before being mixed down
to 16 bits for CD. Older computer games have a distinctively rough sound,
using only 8 bits. By increasing the sample rate, we are able to record higher
sonic frequencies, and by increasing the bit depth, we are able to use a
greater <em>dynamic range</em> (the difference between the quietest and the loudest
sounds possible to record and play).</p><p>Here is a great video tutorial explaining sampling rate and bit depth in a lot
more detail:</p><div style=position:relative;padding-bottom:56.25%;height:0;overflow:hidden><iframe src=https://www.youtube.com/embed/zC5KFnSUPNo style=position:absolute;top:0;left:0;width:100%;height:100%;border:0 allowfullscreen title="YouTube Video"></iframe></div><footer class=footline></footer></div></div><div id=navigation></div></section><div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px><div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div></div><script src=/ardour-tutorial/js/clipboard.min.js?1648461546></script>
<script src=/ardour-tutorial/js/perfect-scrollbar.min.js?1648461546></script>
<script src=/ardour-tutorial/js/perfect-scrollbar.jquery.min.js?1648461546></script>
<script src=/ardour-tutorial/js/jquery.sticky.js?1648461546></script>
<script src=/ardour-tutorial/js/featherlight.min.js?1648461546></script>
<script src=/ardour-tutorial/js/highlight.pack.js?1648461546></script>
<script>hljs.initHighlightingOnLoad()</script><script src=/ardour-tutorial/js/modernizr.custom-3.6.0.js?1648461546></script>
<script src=/ardour-tutorial/js/learn.js?1648461546></script>
<script src=/ardour-tutorial/js/hugo-learn.js?1648461546></script>
<script src=/ardour-tutorial/mermaid/mermaid.js?1648461546></script>
<script>mermaid.initialize({startOnLoad:!0})</script></body></html>