SlideShare a Scribd company logo
1 of 36
MUSC 365
Basics of Digital Audio Module (original)
Analog = continuous



•   continuous time and amplitude
Digital = discrete



•   is discrete time and amplitude
Sampling Theory
Sampling


•   making discrete Time

•   A signal of bandwidth BW may be LOSSLESSLY sampled if the
    sampling rate Fs >= 2BW
Sampling


•   Amplitude is held (sampled) only at certain times

•   Input must be bandlimited to half the sampling rate
Nyquist Frequency


•   half the sampling frequency

•   Fs/2
Critical sampling


•   When a signal is sampled at exactly twice its highest frequency

•   Never done in audio
Sampling Rate

•   High

    •   Large guard band

    •   Allows varispeed

•   Low

    •   Reduce transmission and storage BW
Sampling

•   A band limited waveform amplitude modulates an impulse train.

•   The spectrum of an impulse train is sinewaves @ multiples of Fs

•   Modulated spectrum is waveform spectrum (bandlimited) repeated
    around multiples of Fs (with upper and lower sidebands)

•   If impulses have some width, then the total spectrum is superimposed
    with the |Sin (x)/x| curve
Aliasing
•   Input signal must be bandlimited

•   If it is not, sampling will cause the first lower sideband to fold back
    into the signal

•   Inputs frequencies above Fs/2 are folded back into audio band

•   Wagon wheel analogy in film

•   A 7 kHz wave sampled @ 10kHz looks just like a 3 kHz wave
Sample & Hold


•   Must acquire analog input amplitude at sample time and hold it long
    enough for it to be quantized

•   Sampled analog waveform has greater bandwidth than original input.
    This is inefficient, so amplitude is Quantized and Coded.
Encoding/Modulation
Pulse Code Modulation (PCM)



•   Binary Code is transmitted
Quantization

•   making discrete Amplitude

•   Peak S/E(dB) = 6.02n + 1.76

•   1.76 factor based on sinusoidal input

•   Adding bit increases S/N by 6dB

•   Number of bits determines resolution
Dynamic Range

•   8 bits = 28 = 256 = 48dB

•   12 bits = 212 = 4,096 = 72dB

•   16 bits = 216 = 65,536 = 96dB

•   20 bits = 220 = 1,048,576 = 120dB

•   24 bits = 224 = 16,777,216 = 144dB
Dynamic Range


•   S/E power ratio increases exponentially with data bandwidth

•   (one additional bit is double the accuracy)

•   assumes equal distribution (large signal)
Incredible accuracy


•   Image a stack of paper 22 feet high. The thickness of a sheet of paper
    is the accuracy of a 16bit quantization interval!

•   Image a stack of paper a mile high. The thickness of a sheet of paper is
    the accuracy of a 24bit quantization interval!
Quantization Error
•   Distortion power relative to number of intervals, independent of
    amplitude of signal

•   No input, no error

•   Perceptively changes with input type and level

•   Error is +/- 1/2 Q with a rectangular PDF (equal chance)

•   High level signal has un-correlated error
Types of error

•   Overload Noise (If input > MSB)

•   Over lights on equipment

•   Random Noise (large input)

•   White noise (rectangular, not Gaussian p.d.f), masked by signal

•   Granulation distortion (Very low level input)
Quantization Error

•   Quantization noise is not random, but based on signal.

•   Distortion produces harmonics which can alias

•   Multiple input freq. can cause intermodulation distortion

•   Quantization error can create Aliasing (frequencies not present in
    source) even though it occurs after the sample process
Idle channel Noise/Hunting noise


•   Input signal below LSB, but low freq. information (rumble) moves it
    across quantizing intervals, the signal (and noise) will come and go
Distortion, not noise


•   Peak to peak = ±1/2 Quantization interval (Q)

•   An ideal quantizer is by definition non-linear and will cause
    distortion!!
Quantizing


•   Held amplitude is measured and assigned the closest number

•   2n steps, where n = number of bits

•   approximately 6dB of dynamic range per bit
Transmission


•   AES/EBU

•   S/PDIF

•   TDIF
Metering


•   0dBFS (reference is when all codes are being used – Full Scale)

•   Overload

•   Output is at full scale for many consecutive samples
Dither


•   Noise added to the signal to de-correlate the signal from the
    quantizer
Pro

•   Randomizes granulation distortion, changing it to white noise

•   encodes low-level signals via PWM

•   ear averages PWM signal to resolve signal

•   With dither, resolution is below least significant bit!
Con



•   Raises noise floor slightly
ADC Process

•   Analog-to-Digital conversion

    •   Anti-alias filter

    •   sample & hold

    •   quantizer (with Dither)
Oversampling

•   to ease the requirements

    •   of the anti-alias filter and

    •   the accuracy of the quantizer

•   we trade amplitude accuracy for time accuracy

•   sample crude, but fast
Oversampling

•   gentle analog anti-alias filter

•   High Fs

•   Digital filter (anti-alias) and downsample

•   Digital filter easier than analog
Dynamic Range



•   S/N = 6.02(#of bits + 0.5* #of octaves oversampling) + 1.76
Analog vs. Digital Deterioration


•   In Analog, noise steadily deteriorates the signal-to-noise ratio

•   In Digital, we reach a point of catastrophic failure, when the data can
    no longer be received correctly
Analog vs. Digital Deterioration
365 digital basics before

More Related Content

What's hot

Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
anuragyadav94
 
3. digital transmission fundamentals
3. digital transmission fundamentals3. digital transmission fundamentals
3. digital transmission fundamentals
Rovin Valencia
 
Communication Networks II
Communication Networks IICommunication Networks II
Communication Networks II
anishgoel
 

What's hot (20)

Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Block diagram of digital communication
Block diagram of digital communicationBlock diagram of digital communication
Block diagram of digital communication
 
Quantization
QuantizationQuantization
Quantization
 
Encoding1
Encoding1Encoding1
Encoding1
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
 
3. digital transmission fundamentals
3. digital transmission fundamentals3. digital transmission fundamentals
3. digital transmission fundamentals
 
Delta modulation
Delta modulationDelta modulation
Delta modulation
 
Dccn - Digital Transmission
Dccn - Digital TransmissionDccn - Digital Transmission
Dccn - Digital Transmission
 
Digital To Analog Conversion
Digital To Analog ConversionDigital To Analog Conversion
Digital To Analog Conversion
 
Analog RF Front End Architecture
Analog RF Front End ArchitectureAnalog RF Front End Architecture
Analog RF Front End Architecture
 
Sampling rate bit depth
Sampling rate bit depthSampling rate bit depth
Sampling rate bit depth
 
Encoding Techniques
Encoding TechniquesEncoding Techniques
Encoding Techniques
 
Key Parameters
Key ParametersKey Parameters
Key Parameters
 
Pulse code modulation and Demodulation
Pulse code modulation and DemodulationPulse code modulation and Demodulation
Pulse code modulation and Demodulation
 
Communication Networks II
Communication Networks IICommunication Networks II
Communication Networks II
 
Digital transmission
Digital transmissionDigital transmission
Digital transmission
 
Multimedia Compression and Communication
Multimedia Compression and CommunicationMultimedia Compression and Communication
Multimedia Compression and Communication
 
Analog to Digital conversion
Analog to Digital conversionAnalog to Digital conversion
Analog to Digital conversion
 
Analog to-digital conversion
Analog to-digital conversionAnalog to-digital conversion
Analog to-digital conversion
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 

Similar to 365 digital basics before

CS553_ST7_Ch05-SignalEncodingTechniques.ppt
CS553_ST7_Ch05-SignalEncodingTechniques.pptCS553_ST7_Ch05-SignalEncodingTechniques.ppt
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
mshanajoel6
 
Communication systems week 2
Communication systems week 2Communication systems week 2
Communication systems week 2
babak danyal
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion process
DJNila
 
Cse3461.c.signal encoding.09 04-2012
Cse3461.c.signal encoding.09 04-2012Cse3461.c.signal encoding.09 04-2012
Cse3461.c.signal encoding.09 04-2012
Praveen Kumar
 
Chap4 d t-d conversion
Chap4 d t-d conversionChap4 d t-d conversion
Chap4 d t-d conversion
arslan_akbar90
 
Communication systems week 3
Communication systems week 3Communication systems week 3
Communication systems week 3
babak danyal
 
Communication systems v3
Communication systems v3Communication systems v3
Communication systems v3
babak danyal
 
Digital communications
Digital communicationsDigital communications
Digital communications
Allanki Rao
 

Similar to 365 digital basics before (20)

CS553_ST7_Ch05-SignalEncodingTechniques.ppt
CS553_ST7_Ch05-SignalEncodingTechniques.pptCS553_ST7_Ch05-SignalEncodingTechniques.ppt
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
 
UNIT 2- UNDERSTANDING DIGITAL SIGNALS PART 2
UNIT 2- UNDERSTANDING DIGITAL SIGNALS PART 2UNIT 2- UNDERSTANDING DIGITAL SIGNALS PART 2
UNIT 2- UNDERSTANDING DIGITAL SIGNALS PART 2
 
L8 signal encoding techniques
L8 signal encoding techniquesL8 signal encoding techniques
L8 signal encoding techniques
 
Data communication
Data communicationData communication
Data communication
 
Communication systems week 2
Communication systems week 2Communication systems week 2
Communication systems week 2
 
Communication system lec7
Communication system lec7Communication system lec7
Communication system lec7
 
Data converter fundamentals
Data converter fundamentalsData converter fundamentals
Data converter fundamentals
 
dsp dip.pptx
dsp dip.pptxdsp dip.pptx
dsp dip.pptx
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion process
 
Cse3461.c.signal encoding.09 04-2012
Cse3461.c.signal encoding.09 04-2012Cse3461.c.signal encoding.09 04-2012
Cse3461.c.signal encoding.09 04-2012
 
Digital Transmission 1.ppt
Digital Transmission 1.pptDigital Transmission 1.ppt
Digital Transmission 1.ppt
 
Chap4 d t-d conversion
Chap4 d t-d conversionChap4 d t-d conversion
Chap4 d t-d conversion
 
Telecom lect 6
Telecom lect 6Telecom lect 6
Telecom lect 6
 
Pass band transmission
Pass band transmission Pass band transmission
Pass band transmission
 
Communication systems week 3
Communication systems week 3Communication systems week 3
Communication systems week 3
 
Communication systems v3
Communication systems v3Communication systems v3
Communication systems v3
 
Companding & Pulse Code Modulation
Companding & Pulse Code ModulationCompanding & Pulse Code Modulation
Companding & Pulse Code Modulation
 
Digital communications
Digital communicationsDigital communications
Digital communications
 
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
Sampling Theorem, Quantization Noise and its types, PCM, Channel Capacity, Ny...
 
Introduction to EEG: Instrument and Acquisition
Introduction to EEG: Instrument and AcquisitionIntroduction to EEG: Instrument and Acquisition
Introduction to EEG: Instrument and Acquisition
 

More from Jeff Francis (7)

IMP storyboard
IMP storyboardIMP storyboard
IMP storyboard
 
Edet793 screenlayout
Edet793 screenlayoutEdet793 screenlayout
Edet793 screenlayout
 
FMP Storyboard
FMP StoryboardFMP Storyboard
FMP Storyboard
 
History Of Film Sound Excerpt Original
History Of Film Sound Excerpt OriginalHistory Of Film Sound Excerpt Original
History Of Film Sound Excerpt Original
 
History Of Film Sound Excerpt Revised
History Of Film Sound Excerpt RevisedHistory Of Film Sound Excerpt Revised
History Of Film Sound Excerpt Revised
 
Polarity Key Note
Polarity Key NotePolarity Key Note
Polarity Key Note
 
Polarity
PolarityPolarity
Polarity
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

365 digital basics before

  • 1. MUSC 365 Basics of Digital Audio Module (original)
  • 2. Analog = continuous • continuous time and amplitude
  • 3. Digital = discrete • is discrete time and amplitude
  • 5. Sampling • making discrete Time • A signal of bandwidth BW may be LOSSLESSLY sampled if the sampling rate Fs >= 2BW
  • 6. Sampling • Amplitude is held (sampled) only at certain times • Input must be bandlimited to half the sampling rate
  • 7. Nyquist Frequency • half the sampling frequency • Fs/2
  • 8. Critical sampling • When a signal is sampled at exactly twice its highest frequency • Never done in audio
  • 9. Sampling Rate • High • Large guard band • Allows varispeed • Low • Reduce transmission and storage BW
  • 10. Sampling • A band limited waveform amplitude modulates an impulse train. • The spectrum of an impulse train is sinewaves @ multiples of Fs • Modulated spectrum is waveform spectrum (bandlimited) repeated around multiples of Fs (with upper and lower sidebands) • If impulses have some width, then the total spectrum is superimposed with the |Sin (x)/x| curve
  • 11. Aliasing • Input signal must be bandlimited • If it is not, sampling will cause the first lower sideband to fold back into the signal • Inputs frequencies above Fs/2 are folded back into audio band • Wagon wheel analogy in film • A 7 kHz wave sampled @ 10kHz looks just like a 3 kHz wave
  • 12. Sample & Hold • Must acquire analog input amplitude at sample time and hold it long enough for it to be quantized • Sampled analog waveform has greater bandwidth than original input. This is inefficient, so amplitude is Quantized and Coded.
  • 14. Pulse Code Modulation (PCM) • Binary Code is transmitted
  • 15. Quantization • making discrete Amplitude • Peak S/E(dB) = 6.02n + 1.76 • 1.76 factor based on sinusoidal input • Adding bit increases S/N by 6dB • Number of bits determines resolution
  • 16. Dynamic Range • 8 bits = 28 = 256 = 48dB • 12 bits = 212 = 4,096 = 72dB • 16 bits = 216 = 65,536 = 96dB • 20 bits = 220 = 1,048,576 = 120dB • 24 bits = 224 = 16,777,216 = 144dB
  • 17. Dynamic Range • S/E power ratio increases exponentially with data bandwidth • (one additional bit is double the accuracy) • assumes equal distribution (large signal)
  • 18. Incredible accuracy • Image a stack of paper 22 feet high. The thickness of a sheet of paper is the accuracy of a 16bit quantization interval! • Image a stack of paper a mile high. The thickness of a sheet of paper is the accuracy of a 24bit quantization interval!
  • 19. Quantization Error • Distortion power relative to number of intervals, independent of amplitude of signal • No input, no error • Perceptively changes with input type and level • Error is +/- 1/2 Q with a rectangular PDF (equal chance) • High level signal has un-correlated error
  • 20. Types of error • Overload Noise (If input > MSB) • Over lights on equipment • Random Noise (large input) • White noise (rectangular, not Gaussian p.d.f), masked by signal • Granulation distortion (Very low level input)
  • 21. Quantization Error • Quantization noise is not random, but based on signal. • Distortion produces harmonics which can alias • Multiple input freq. can cause intermodulation distortion • Quantization error can create Aliasing (frequencies not present in source) even though it occurs after the sample process
  • 22. Idle channel Noise/Hunting noise • Input signal below LSB, but low freq. information (rumble) moves it across quantizing intervals, the signal (and noise) will come and go
  • 23. Distortion, not noise • Peak to peak = ±1/2 Quantization interval (Q) • An ideal quantizer is by definition non-linear and will cause distortion!!
  • 24. Quantizing • Held amplitude is measured and assigned the closest number • 2n steps, where n = number of bits • approximately 6dB of dynamic range per bit
  • 25. Transmission • AES/EBU • S/PDIF • TDIF
  • 26. Metering • 0dBFS (reference is when all codes are being used – Full Scale) • Overload • Output is at full scale for many consecutive samples
  • 27. Dither • Noise added to the signal to de-correlate the signal from the quantizer
  • 28. Pro • Randomizes granulation distortion, changing it to white noise • encodes low-level signals via PWM • ear averages PWM signal to resolve signal • With dither, resolution is below least significant bit!
  • 29. Con • Raises noise floor slightly
  • 30. ADC Process • Analog-to-Digital conversion • Anti-alias filter • sample & hold • quantizer (with Dither)
  • 31. Oversampling • to ease the requirements • of the anti-alias filter and • the accuracy of the quantizer • we trade amplitude accuracy for time accuracy • sample crude, but fast
  • 32. Oversampling • gentle analog anti-alias filter • High Fs • Digital filter (anti-alias) and downsample • Digital filter easier than analog
  • 33. Dynamic Range • S/N = 6.02(#of bits + 0.5* #of octaves oversampling) + 1.76
  • 34. Analog vs. Digital Deterioration • In Analog, noise steadily deteriorates the signal-to-noise ratio • In Digital, we reach a point of catastrophic failure, when the data can no longer be received correctly
  • 35. Analog vs. Digital Deterioration

Editor's Notes

  1. (Pohlmann pg. 27) Proof in Couch pg. 90-91
  2. Pohlmann pg. 35