Home About AC Updates AC Radio AC Blog AC Courses Forum
 
FAQ Profile Members Register Groups PM's Search Login/Out

Sampling Theory

Last Thread | Next Thread  >


Post new topic Reply to topic

Forum Index > Digital Audio


Author Thread
conquistadore
Forum Moderator


Joined: 03 Aug 2004
Posts: 514
Sampling Theory  Reply with quote  

Hi,
could someone explain the Nyquist Sampling Theory?

thanks so much
conquistadore
Post Sat Mar 05, 2005 9:05 am
 View user's profile Send private message Yahoo Messenger
AUdIoCoUrSeS



Joined: 31 Oct 2002
Posts: 2014
Harry Nyquist  Reply with quote  

Imagine a grid is placed over the waveform which then gives us a discrete number over time (horizontal axis) and a discrete number for level (vertical axis). The vertical grid levels are know as the quantization levels and the horizontal grid levels are know as the sampling periods .

Harry Nyquist discovered that for any waveform (any at all) we only need two sampling measurements on a given waveform, over a known period, to determine its frequency.

We can determine the frequency by the steepness of the slope over a known time period, the steeper the slope the greater the frequency. - you can see this in your digital audio editor very clearly.

Therefore to capture all of the audio spectrum accurately we only need to use a sampling rate of twice the highest frequency we wish to capture. - this is known as the Nyquist rate .

As the human audio range extends to 20,000 Hertz (20k) we only need to have a sampling rate of 40k, hence the 44.1k CD standard. (the extra bandwidth is for processing tasks etc)

Does that help?
_________________
It's all in the ears. - Learn the concepts not the software. Audio Courses is a way into the music business for you
Post Sat Mar 05, 2005 11:02 am
 View user's profile Send private message Visit poster's website Yahoo Messenger ICQ Number

conquistadore
Forum Moderator


Joined: 03 Aug 2004
Posts: 514
Nyquist Rate  Reply with quote  

hi,
that did help...much better than some of the stuff i found on the net!
a few clarifications though...
are quantization levels dependent on frequency, i.e, does it increase with frequency?
and by steepness of the slope do u mean the mathematical slope - dx/dy?
so say i record a piece of music and the highest frequency is 10k, then a sampling rate of around 22k would do, right? (and the other 12k is for the processing tasks?)

thanks again,
conquistadore
Post Sat Mar 05, 2005 12:49 pm
 View user's profile Send private message Yahoo Messenger
AUdIoCoUrSeS



Joined: 31 Oct 2002
Posts: 2014
16 bits  Reply with quote  

Good questions.


quote:
are quantization levels dependent on frequency, i.e, does it increase with frequency?


No quantization is dependent on bit length. So with say 16 bits you can have a possible 65536 levels.. (lots huh) and with 24 bits you have ...

16 bits means 16 "ones and noughts" to carry the message, so:

0000000000000000 = 0 (silence)
1111111111111111 = 65536 (loud)

That's a very crude way to explain it, but it serves a purpose.

The more bits, the better the dynamics ..


quote:
so say i record a piece of music and the highest frequency is 10k, then a sampling rate of around 22k would do, right? (and the other 12k is for the processing tasks?)


Yes that is correct, twice the highest audio frequency is enough to capture it. The processing tasks I mention is all about making it a little easier to calculate, a little room.

Try an experiemnt, record the same thing at different sampling rates, you'll start noticing the "top-end" dissapear with each reduction.
_________________
It's all in the ears. - Learn the concepts not the software. Audio Courses is a way into the music business for you
Post Sat Mar 05, 2005 2:39 pm
 View user's profile Send private message Visit poster's website Yahoo Messenger ICQ Number

conquistadore
Forum Moderator


Joined: 03 Aug 2004
Posts: 514
Re: Nyquist Rate  Reply with quote  

quote:
Originally posted by conquistadore

and by steepness of the slope do u mean the mathematical slope - dx/dy?

so, quantization levels/sampling periods = frequency?

why are cd's written at 16 bits? wouldn't it be 'better' if it was at a higher bit rate (more levels)? or is it written at 16bits because cd's are designed that way?
and when dithering is done...say from 24bits to 16 bits, information is lost. so why is 'noise' added? shouldnt it be added to 'fill up space'. but here there is 'loss of space'. i hope you get what im trying to say.
thanks..
conquistadore
Post Sat Mar 05, 2005 11:48 pm
 View user's profile Send private message Yahoo Messenger
AUdIoCoUrSeS



Joined: 31 Oct 2002
Posts: 2014
Sampling  Reply with quote  


quote:
so, quantization levels/sampling periods = frequency?


No do not confuse them, they are two different things.

1. quantization = the wordlength (AMOUNT OF BITS).... i.e. 8, 12, 16, 24 etc..
2. sampling = the frequency i.e. 44.1kHz, 96kHz, etc.. (THIS IS HOW MANY TIMES A SECOND THE AUDIO IS PHOTOGRAPHED or MEASURED)

Both are necessary in order to convert audio to digital information. It just so happens we use the term "sampling" to mean capturing the audio in a digital way. I suppose a more correct term might be "samplization". The point being if you take a sample of the audio at a certain point you must then quantize its level at that point.


quote:
why are cd's written at 16 bits?


Because that is how they are designed to work, the CD format utilises 16 bit codes.


quote:
and when dithering is done...say from 24bits to 16 bits, information is lost. so why is 'noise' added? shouldnt it be added to 'fill up space'. but here there is 'loss of space'.


Here is an explanation of [url=http://www.audiocourses.com/ftopict-1353-dither.html] Dither [/url]

Make sense?
_________________
It's all in the ears. - Learn the concepts not the software. Audio Courses is a way into the music business for you


Last edited by AUdIoCoUrSeS on Sun Mar 06, 2005 10:42 am; edited 1 time in total
Post Sun Mar 06, 2005 8:52 am
 View user's profile Send private message Visit poster's website Yahoo Messenger ICQ Number

conquistadore
Forum Moderator


Joined: 03 Aug 2004
Posts: 514
 Reply with quote  

hi,
thanks so much....its a whole lot clearer now! makes a lot of sense!

conquistadore
Post Sun Mar 06, 2005 10:39 am
 View user's profile Send private message Yahoo Messenger

Post new topic Reply to topic
Forum Jump:
Jump to:  

All times are GMT.
The time now is Fri May 16, 2008 3:11 pm
  Display posts from previous:      

ACF + topic RSS feed 

Audio School © 2008 Audio Courses