digital audio

58
digital audio

Upload: devika

Post on 27-Jan-2016

36 views

Category:

Documents


0 download

DESCRIPTION

digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary use). characteristics of sound. ANALOG. DIGITAL. frequency (time based). sample rate (time based). =. measured in - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: digital audio

digital audiodigital audio

Page 2: digital audio

In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound.

(contrasted to MIDI binary use)

Page 3: digital audio

frequency (time based)

characteristics of soundcharacteristics of sound

ANALOG DIGITAL

sample rate (time based)

=

measured inhertz - cycles per second

measured inhertz - samples per second

Page 4: digital audio

amplitude (level)

frequency (time)

characteristics of soundcharacteristics of sound

ANALOG DIGITAL

quantization (level)

sample rate (time)=

=

measured in decibel

measured in bits

Page 5: digital audio

characteristics of soundcharacteristics of sound

analog-to-digital conversion : two steps

(1) sampling

(2) quantization

Page 6: digital audio

sampling theorem

“A continuous audio signal can be replaced by a discrete sequence of samples without loss of any information and the original continuous audio signal can be reconstructed from the samples.”

Page 7: digital audio

When a digital recorder takes a sample, it takes a snapshot of the audio waveform and turns it into bits that can be stored and manipulated.

010001111101100000110010011000001010010010100011111011000001100100110000010100100101000111110110000011001001100000101001001010001111101100000110010011000001010010010100011111011000001100100110000010100100101000111110110000011001001100000101001001010001111101100000110010011000001010010010100011111011000001100100110000010100100101000111110110000011001001100000101001001010001111101100000110010011000001010010010100011111011000001100100110000010100100101000111110110000011001001100000101001001 0100011111011000001100100110000010100100101000111110110000011001001100000101001001

Page 8: digital audio

sample rate

The frequency of the 'snapshots' of the audio stream in a single second

Just as in measuring frequency, hertz is used to define the number of samples taken per second

Page 9: digital audio

flip cards

QuickTime™ and aGIF decompressor

are needed to see this picture.

Page 10: digital audio

flip cards

http://www.youtube.com/watch?v=xSrDnIVgVv0

Page 11: digital audio

flip cards

http://www.youtube.com/watch?v=Ql4Kkb-89D0

Page 12: digital audio

sample rate:

the number of samples (measurements) taken of an analog signal in 1 second

Page 13: digital audio

sample rate:

The sample rate determines the frequency range (bandwidth) of a system.

Page 14: digital audio

sample rate:

The sample rate determines the frequency range (bandwidth) of a system.

the number of samples (measurements) taken of an analog signal signal in 1 second

The faster the sample rate, the better the accuracy of getting a true picture of higher frequencies.

Page 15: digital audio

Some common sample rates are:

22,050 aka 22.05 kHz - 22,050 samples per second. A sample every 1/22,050 of a sec.

24,000 aka 24 kHz - 24,000 samples per second. A sample every 1/24,000 of a sec.

30,000 aka 30 kHz - 30,000 samples per second. A sample every 1/30,000 of a sec.

44,100 aka 44.1 kHz - 44,100 samples per second. A sample every 1/44,000 of a sec.

48,000 aka 48 kHz - 48,000 samples per second. A sample every 1/48,000 of a sec.

Page 16: digital audio

The higher the sample rate, the better the quality of the sample. A sample taken at 44.1 kHz will contain twice the information as a sample taken at 22,050 kHz.

Page 17: digital audio

High sample rates are better at capturing high frequency waveforms, but if you are sampling lower frequency sounds, such as kick drum, bass, etc.,...not as critical.

you might consider sampling at the lower rate to save hard drive space.

Page 18: digital audio

high freq. signal

Page 19: digital audio
Page 20: digital audio

see p. 113-122

Page 21: digital audio

NYQUIST THEORY

Named after a Bell engineer who worked on the speed of telegraphs in the 1920s

Page 22: digital audio
Page 23: digital audio

There must be two samples per period. In other words, the sampling frequency must be at least twice the highest signal frequency recorded in order to be effective.

Page 24: digital audio

Sample rates with Nyquist yield 22,050 kHz = 11,025 kHz (Nyquist)24,000 kHz = 12,000 kHz 30,000 kHz = 15,000 kHz 44,100 kHz = 22,050 kHz 

Page 25: digital audio

It is therefore important to take into consideration the highest frequency of the audio material to be recorded.

Page 26: digital audio

If a frequency of A-14,080 Hz is to be recorded, a sample rate of 44.1 kHz would be the logical choice to use.

14,080 Hz falls within the range of the Nyquist of 44.1 kHz which is 22.05 kHz.

Page 27: digital audio

The choice of sample rate determines the audio bandwidth of the recorder used.

CD is 44.1 kHz

Considering that the human hearing range at best ranges from 20 Hz to 20 kHz, a 44.1 kHz sample rate theoretically should satisfy most audio needs.

Page 28: digital audio

If a 25 kHz waveform is sampled at 44.1 kHz (which has a Nyquist value of 22.05 kHz), the Nyquist rule is broken.

This is also known as aliasing or foldover.

44 kHz - 25 kHz , results in a 19 kHz waveform which is heard as distortion.

Page 29: digital audio

see p. 125

Page 30: digital audio

In audio: Alias is mirrored the same distance below the Nyquist frequency as the original was above it, at the original amplitude (foldover)

- 2k - 4k

Page 31: digital audio

QuickTime™ and aGIF decompressorare needed to see this picture.

aliasing

Page 32: digital audio
Page 33: digital audio

Once aliasing is introduced into the digital stream, it can’t be removed.

It must be stopped before entering the digital stream.

Page 34: digital audio

QUANTIZATION QUANTIZATION

The technique of measuring an audio event to form a numerical value.

In digital audio, the values = voltages

the more bits, the more voltages that can be represented.

voltages represent amplitude

Page 35: digital audio

time (infinite) is quantized

Page 36: digital audio

hour 60 minutes...minutes 60 seconds...etc.

Page 37: digital audio
Page 38: digital audio
Page 39: digital audio

sample rate = frequency

quantization = amplitudegain staging (p. 133)

Page 40: digital audio
Page 41: digital audio

quantization error The difference between the actual analog value

at the sample time and the selected quantization interval value

Page 42: digital audio

The amplitude of the audio signal is broken down into a series of discrete steps.

Each step is then given a binary word that digitally encodes the level of the signal.

The length of the digital word determines the quality of the representation.

Page 43: digital audio

4 bits

16 voltages

00010000

0010010010000011011011000111etc

Page 44: digital audio

The larger the word, the better the quality (16 bit word compared to an 8 bit word).

The larger the bit word, the greater the headroom of the audio system  (6 dB for every bit).

Page 45: digital audio

The more steps with which to describe the signal, the smoother the result will be.

Page 46: digital audio

SAMPLE BITS

The more bits used to describe something, the better the clarity and fidelity

An 8 bit sample contains 256 steps of information while a 16 bit sample contains up to 65,536 steps.

Page 47: digital audio

The bit resolution of a system defines the dynamic range of the system.

6dB is gained for every bit

signal to noise ratio (analog)

signal to error ratio (digital)

Page 48: digital audio

8 bits equals 256 states = 48 dB

16 bits equals 65,536 states = 96 dB

To find the dynamic range of a system, multiply the bit rate X 6.

Page 49: digital audio

In a 16 bit system, there are 65,536 different numbers, each number representing a different analog signal voltage

Page 50: digital audio
Page 51: digital audio

Value rounded up or down to closest represented value

Ex: voltage of 1.2v = 00100110

1.3 v= 00100111

1.4v = 00101000

quantization error

Page 52: digital audio

Quantization error is the difference between actual analog value and the assigned quantization value

There is always error. 1/2 of LSb

Page 53: digital audio

LSb least significant bit

on or off

8 bit reverb decay at end...hear it turn on off

Page 54: digital audio

•sample rate = frequency response

•bit depth = amplitude

recap

sample rate

bit depth 0001

00100100

Page 55: digital audio

Sample rate and storage

44.1 kHz sample rate with a 16 bit recorder 5 megs per minute...per track

3 minute mono audio file 16/44.1= 15 megs3 minute stereo audio file 16/44.1= 30 megs3 minute 5 mono tracks 16/44.1= 75 megs3 minute 5 stereo tracks 16/44.1=

150 megs

Page 56: digital audio

At a sample rate of 22,050 Hz, the formula would be half that of 44.1 kHz...around 2.5 megs a minute or 5 megs a minute in stereo.

Uncompressed video with a sound track takes up 28 MB per second.

Page 57: digital audio

16-Bit Audio Files:

* 5 MB per minute per track @ 44.1 kHz sample rate * 5.5 MB per minute per track @ 48 kHz sample rate * 11 MB per minute per track @ 96 kHz sample rate

* 8 MB per minute per track @ 48 kHz sample rate * 16 MB per minute per track @ 96 kHz sample rate

Page 58: digital audio

24-Bit Audio Files:

* 7.5 MB per minute per track @ 44.1 kHz sample rate * 8 MB per minute per track @ 48 kHz sample rate * 16 MB per minute per track @ 96 kHz sample rate