digital audio — the nuts and bolts a digital audio overview ranging from bit rate, sample rate,...

52
Digital Audio — Digital Audio — The Nuts and The Nuts and Bolts Bolts A digital audio overview ranging A digital audio overview ranging from bit rate, sample rate, and from bit rate, sample rate, and compression types to room compression types to room acoustics, microphones, and acoustics, microphones, and digital effects digital effects

Upload: kristopher-benson

Post on 16-Dec-2015

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Audio —Digital Audio —The Nuts and The Nuts and BoltsBolts

A digital audio overview ranging from A digital audio overview ranging from bit rate, sample rate, and compression bit rate, sample rate, and compression types to room acoustics, microphones, types to room acoustics, microphones, and digital effectsand digital effects

Page 2: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Sound Waves/Analog Sound Waves/Analog AudioAudio Sound waves are continuousSound waves are continuous

Infinite number of amplitude Infinite number of amplitude points can be identified between points can be identified between any two points in timeany two points in time

Page 3: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital AudioDigital Audio

Computers don’t deal with Computers don’t deal with continuous concepts (infinity)continuous concepts (infinity)

Digital technology converts Digital technology converts analog audio to computer valuesanalog audio to computer values

Page 4: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital ConversionDigital Conversion

Digitizing a continuous wave = Digitizing a continuous wave = samplingsampling

Amplitude measurements of a Amplitude measurements of a sound signal are regularly sampledsound signal are regularly sampled

Page 5: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

ADC and DACADC and DAC

ADC – Analog to Digital ConverterADC – Analog to Digital Converter

Converts analog signal to Converts analog signal to digital samplesdigital samples

DAC – Digital to Analog ConverterDAC – Digital to Analog Converter

Converts digital samples to Converts digital samples to analog signalanalog signal

Page 6: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Characteristics ofCharacteristics ofDigital AudioDigital Audio Sampling RateSampling Rate

– How often signal is sampledHow often signal is sampled– Number of samples per secondNumber of samples per second

Bit DepthBit Depth– Size of number used to store Size of number used to store

samplessamples– larger number gives more degrees larger number gives more degrees

of valueof value

Page 7: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Sampling RateSampling Rate

Harry Nyquist (Bell Labs – 1925)Harry Nyquist (Bell Labs – 1925)

Nyquist Theorem: To represent Nyquist Theorem: To represent digitally a signal containing digitally a signal containing frequency components up to X Hz, it frequency components up to X Hz, it is necessary to use a sampling rate is necessary to use a sampling rate of at least 2X.of at least 2X.

Humans hear to 20 kHz, requiring Humans hear to 20 kHz, requiring sample rate of at least 40ksample rate of at least 40k

Page 8: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

AliasingAliasing

In movies, car wheels appear to In movies, car wheels appear to move backwards if between ½ and move backwards if between ½ and 1 revolution per frame1 revolution per frame

In sound, this is not acceptableIn sound, this is not acceptable

Filters are used to remove any Filters are used to remove any frequencies above Nyquist frequencies above Nyquist frequencyfrequency

Page 9: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

UndersamplingUndersampling

Page 10: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Undersampling = Undersampling = AliasesAliases

Page 11: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Critical SamplingCritical Sampling

Page 12: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Lowpass FilterLowpass Filter

Reduces or eliminates higher Reduces or eliminates higher frequenciesfrequencies

Used to remove any frequencies Used to remove any frequencies above Nyquist frequencyabove Nyquist frequency

Page 13: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Bit Depth Bit Depth (Quantization)(Quantization) Amplitude values are stored as Amplitude values are stored as

binary numbersbinary numbers

Accuracy depends on how many Accuracy depends on how many bits are available to represent bits are available to represent these valuesthese values

For CD Audio we use 16 bitsFor CD Audio we use 16 bits

Page 14: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

QuantizationQuantization

No matter how many bits are No matter how many bits are used, there is always a margin of used, there is always a margin of errorerror

Low-level signals do not use all Low-level signals do not use all available bits, so signal-to-error available bits, so signal-to-error ratio is greaterratio is greater

Page 15: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

QuantizationQuantization

Quantization error creates a kind Quantization error creates a kind of distortionof distortion

Dither adds low-level noise to Dither adds low-level noise to audio signal before samplingaudio signal before sampling

Dither turns distortion (bad) into Dither turns distortion (bad) into noise (less bad) – still less noise noise (less bad) – still less noise than analogthan analog

Page 16: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Dither – Low-level noise added Dither – Low-level noise added

(prior to sampling) to reduce (prior to sampling) to reduce quantization error distortionquantization error distortion

Page 17: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Lowpass Filter – Removes frequencies Lowpass Filter – Removes frequencies

above Nyquist Frequency; cutoff above Nyquist Frequency; cutoff startsstarts a few thousand hertz lowera few thousand hertz lower

Page 18: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Sample and Hold – Analog Sample and Hold – Analog

voltages are measured and held voltages are measured and held long enough to be read by ADClong enough to be read by ADC

Page 19: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Analog-to-Digital Converter – Analog-to-Digital Converter –

Converts analog voltages into Converts analog voltages into binary numbersbinary numbers

Page 20: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Multiplexer – Combines the Multiplexer – Combines the

parallel data streams (stereo) into parallel data streams (stereo) into a single serial bit streama single serial bit stream

Page 21: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Error Correction – Variety of Error Correction – Variety of

measures to eliminate, reduce, or measures to eliminate, reduce, or compensate for errorscompensate for errors

Page 22: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess Encoding – Encoded for playbackEncoding – Encoded for playback

Page 23: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Recording Digital Recording ProcessProcess StorageStorage

Page 24: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Buffer – To ensure that samples Buffer – To ensure that samples

are processed at a constant rateare processed at a constant rate

Page 25: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Error Correction – Attempt to Error Correction – Attempt to

eliminate, reduce, or conceal data eliminate, reduce, or conceal data errorserrors

Page 26: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Demultiplexer – Splits the serial Demultiplexer – Splits the serial

bitstream into parallel data bitstream into parallel data streams (stereo)streams (stereo)

Page 27: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess DAC – Digital-to-Analog converter DAC – Digital-to-Analog converter

translates binary numbers to translates binary numbers to voltage valuesvoltage values

Page 28: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Sample and Hold – Reads the Sample and Hold – Reads the

value from the DAC and holds it value from the DAC and holds it until the DAC’s next stable stateuntil the DAC’s next stable state

Page 29: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Lowpass Filter – Smooths the Lowpass Filter – Smooths the

output from the sample and hold output from the sample and hold circuitcircuit

Page 30: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Digital Playback Digital Playback ProcessProcess Audio – The finished productAudio – The finished product

Page 31: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Room AcousticsRoom Acoustics

Characteristic room sound is Characteristic room sound is determined by the relationship determined by the relationship between direct and reflected soundbetween direct and reflected sound

Virtually all sound reaching listeners Virtually all sound reaching listeners is a combination of direct & is a combination of direct & reflectedreflected

At greater distances, most sound is At greater distances, most sound is reflected soundreflected sound

Page 32: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Room AcousticsRoom Acoustics

Direct SoundDirect Sound– Directly from the source to the Directly from the source to the

listenerlistener– Direct sound arrives Direct sound arrives beforebefore reflected reflected

sound; even if reflected sound is sound; even if reflected sound is louder, we hear direct sound first louder, we hear direct sound first and determine direction of the and determine direction of the sourcesource

Page 33: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Room AcousticsRoom Acoustics

Early ReflectionsEarly Reflections– First-order reflections that reach the First-order reflections that reach the

listener after reflecting listener after reflecting onceonce from from the floor, ceiling, or wallsthe floor, ceiling, or walls

– If arriving in the first 35ms after the If arriving in the first 35ms after the direct sound, reinforces with clarity direct sound, reinforces with clarity & intelligibility& intelligibility

– ““Intimate” halls have first-order Intimate” halls have first-order reflections of less than 20msreflections of less than 20ms

Page 34: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Room AcousticsRoom Acoustics

Diffuse ReverberationsDiffuse Reverberations– Second- (and higher) order reflectionsSecond- (and higher) order reflections– Reverberation time is the time required Reverberation time is the time required

for the SPL to drop 60dBfor the SPL to drop 60dB– Larger room is likely to have longer Larger room is likely to have longer

reverberation time than a smaller roomreverberation time than a smaller room– Reverberation time is frequency Reverberation time is frequency

dependent; lower frequencies dependent; lower frequencies reverberate longerreverberate longer

Page 35: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Types of ReflectionsTypes of Reflections

SpecularSpecular– Reflections off smooth and regular Reflections off smooth and regular

surfacessurfaces– reflection in one directionreflection in one direction

DiffuseDiffuse– Reflections off irregular surfacesReflections off irregular surfaces– Reflections scattered in many Reflections scattered in many

directionsdirections– Contribute to sound of older concert Contribute to sound of older concert

hallshalls

Page 36: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

AbsorptionAbsorption

Page 37: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Small RoomSmall Room

Space has potential to act as closed Space has potential to act as closed tube, producing standing wavetube, producing standing wave

Result is amplification of certain Result is amplification of certain frequencies based on room’s frequencies based on room’s dimensionsdimensions

Not a factor in large rooms because Not a factor in large rooms because air temperature varies moreair temperature varies more

Page 38: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

MicrophonesMicrophones

Receptor typeReceptor type– Diaphragm acts as receptorDiaphragm acts as receptor– Diaphragm vibratesDiaphragm vibrates

Transducer typeTransducer type– Transducer converts vibrations to Transducer converts vibrations to

electricityelectricity DirectionalityDirectionality

– Determines strength of signal produced Determines strength of signal produced by sounds arriving from different by sounds arriving from different directionsdirections

Page 39: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Receptor TypesReceptor Types

PressurePressure– Diaphragm responds to sound pressure Diaphragm responds to sound pressure

changes on only one side of diaphragmchanges on only one side of diaphragm Pressure GradientPressure Gradient

– Diaphragm responds to sound pressure Diaphragm responds to sound pressure changes from the front or rearchanges from the front or rear

– Signal is determined by difference Signal is determined by difference (gradient) of pressures from either side(gradient) of pressures from either side

Page 40: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Transducer TypesTransducer Types

Dynamic Dynamic (Electrodynamic, Electromagnetic, Ribbon, Moving (Electrodynamic, Electromagnetic, Ribbon, Moving Coil)Coil)

– Principle of Principle of magnetic induction – magnetic induction – wire wire moves within a magnetic field, producing a moves within a magnetic field, producing a currentcurrent

– Inexpensive and sturdyInexpensive and sturdy Condenser (Capacitor)Condenser (Capacitor)

– Two oppositely-charged metal platesTwo oppositely-charged metal plates– Current moves from one to the otherCurrent moves from one to the other– Sharper transientsSharper transients– ExpensiveExpensive

Page 41: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

DirectionalityDirectionality

Determines the strength of signal Determines the strength of signal produced by sounds arriving from produced by sounds arriving from different directionsdifferent directions

Directionality varies with frequencyDirectionality varies with frequency

Specs often include polar plot with Specs often include polar plot with patterns for different frequenciespatterns for different frequencies

Page 42: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Responds equally to sound from all Responds equally to sound from all directionsdirections

Pressure mics are omnidirectionalPressure mics are omnidirectional

OmnidirectionalOmnidirectional

Page 43: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

BidirectionalBidirectional

Figure-eight responseFigure-eight response Responds equally to sounds from Responds equally to sounds from

front & back; none from sidesfront & back; none from sides Pressure gradient mics are Pressure gradient mics are

bidirectionalbidirectional

Page 44: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

First-Order CardioidFirst-Order Cardioid

Most common directional microphonesMost common directional microphones

Cardioid refers to heart-shaped patternCardioid refers to heart-shaped pattern

Directional patterns are obtained by Directional patterns are obtained by combining pressure and pressure combining pressure and pressure gradient elements in varying gradient elements in varying proportionsproportions

Page 45: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Cardioid VariationsCardioid Variations

50% Pressure/50% Pres. Gradient

37% Pressure/63% Pres. Gradient

75% Pressure/25% Pres. Gradient

25% Pressure/75% Pres. Gradient

Page 46: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

EffectsEffects

All music that is recorded or All music that is recorded or amplified relies on effects to amplified relies on effects to enhance the sound.enhance the sound.

Effects are necessary to make Effects are necessary to make electronic audio signals sound like electronic audio signals sound like natural sound.natural sound.

Page 47: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Effects = FiltersEffects = Filters

Effects are created by filter Effects are created by filter combinationscombinations

Filtering involves combining Filtering involves combining original signal with delayed original signal with delayed versionversion

Higher internal processing bit rate Higher internal processing bit rate means more accurate arithmeticmeans more accurate arithmetic

Page 48: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Simple DelaySimple Delay

Signal combined with delayed version Signal combined with delayed version of itself.of itself.

Page 49: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Multitap DelayMultitap Delay

Series of Simple Delays; output is Series of Simple Delays; output is combines with a succession of combines with a succession of delays.delays.

Page 50: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Feedback DelayFeedback Delay

Combines delayed output with Combines delayed output with input, then sends through delay input, then sends through delay again.again.

Page 51: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Delay-Based EffectsDelay-Based Effects

FlangingFlanging ChorusingChorusing Phase ShiftingPhase Shifting ReverberationReverberation

Page 52: Digital Audio — The Nuts and Bolts A digital audio overview ranging from bit rate, sample rate, and compression types to room acoustics, microphones, and

Non-Delay-Based Non-Delay-Based EffectsEffects Ring ModulationRing Modulation Amplitude ModulationAmplitude Modulation Compression/LimitingCompression/Limiting Expansion/Noise GatingExpansion/Noise Gating