{"id":671,"date":"2017-08-16T13:07:31","date_gmt":"2017-08-16T20:07:31","guid":{"rendered":"http:\/\/www.earlevel.com\/main\/?p=671"},"modified":"2019-02-24T15:15:41","modified_gmt":"2019-02-24T23:15:41","slug":"sampling-theory-the-best-explanation-youve-ever-heard-part-1","status":"publish","type":"post","link":"https:\/\/www.earlevel.com\/main\/2017\/08\/16\/sampling-theory-the-best-explanation-youve-ever-heard-part-1\/","title":{"rendered":"Sampling theory, the best explanation you\u2019ve ever heard\u2014Part 1"},"content":{"rendered":"<p>I\u2019ll start by giving away secrets first:<\/p>\n<ol>\n<li>Individual digital samples are impulses. Not bandlimited impulses, ideal ones.<\/li>\n<li>We know what lies between samples\u2014virtual zero samples.<\/li>\n<li>Audio samples don\u2019t represent the source audio. They represent a modulated version of the audio. We modulated the audio to ensure points #1 and #2.<\/li>\n<\/ol>\n<p>Well, not secrets, but many smart people\u2014people who\u2019ve done DSP programming for years\u2014don\u2019t know these points. They have other beliefs that have served them well, but have left gaps.<\/p>\n<h3>Let\u2019s see why<\/h3>\n<p>Analog audio, to digital for processing and storage, and back to analog<\/p>\n<p><a href=\"\/main\/wp-content\/uploads\/2017\/08\/ADA.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-685\" src=\"\/main\/wp-content\/uploads\/2017\/08\/ADA.png\" alt=\"\" width=\"640\" height=\"80\" srcset=\"https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/ADA.png 640w, https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/ADA-300x38.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Component details\u2014first the analog-to-digital converter (ADC)<\/p>\n<p><a href=\"\/main\/wp-content\/uploads\/2017\/08\/ADC-Detail.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-690\" src=\"\/main\/wp-content\/uploads\/2017\/08\/ADC-Detail.png\" alt=\"\" width=\"640\" height=\"132\" srcset=\"https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/ADC-Detail.png 640w, https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/ADC-Detail-300x62.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>The digital-to-analog converter (DAC)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-689\" style=\"font-size: 12px;\" src=\"\/main\/wp-content\/uploads\/2017\/08\/DAC-Detail.png\" alt=\"\" width=\"640\" height=\"132\" srcset=\"https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/DAC-Detail.png 640w, https:\/\/www.earlevel.com\/main\/wp-content\/uploads\/2017\/08\/DAC-Detail-300x62.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>Analog to digital conversion, and conversion back to analog are symmetrical processes\u2014not surprising.<\/p>\n<p>But we can make another important observation: We know that the bandlimiting lowpass filter of the ADC is there as a precaution, to ensure that the source signal is limited to frequencies below half the sample rate. But we have an identical filter at the output of the DAC\u2014why do we need that, after eliminating the higher frequencies at the beginning of the ADC? The answer is that conversion to discrete time adds high frequency components not in the original signal.<\/p>\n<p>Stop and think about this\u2014it\u2019s key to understanding digital audio. It means that the digital audio samples do not represent the spectrum of the bandlimited analog signal\u2014the samples represent the spectrum of the bandlimited analog signal and additional higher frequencies.<\/p>\n<p>To understand the nature of the higher frequencies added in the sampling process, it helps to look at the origins of sampling.<\/p>\n<p><em>Next: We explore the origins of sampling in Part 2<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ll start by giving away secrets first: Individual digital samples are impulses. Not bandlimited impulses, ideal ones. We know what lies between samples\u2014virtual zero samples. Audio samples don\u2019t represent the source audio. They represent a modulated version of the audio. &hellip; <a href=\"https:\/\/www.earlevel.com\/main\/2017\/08\/16\/sampling-theory-the-best-explanation-youve-ever-heard-part-1\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[37],"_links":{"self":[{"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/posts\/671"}],"collection":[{"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":9,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"predecessor-version":[{"id":841,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/posts\/671\/revisions\/841"}],"wp:attachment":[{"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.earlevel.com\/main\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}