Register to reply 
How does Nyquist's theory apply to digital recording of opera music? 
Share this thread: 
#1
Mar412, 03:01 PM

P: 13

Pretty sure I have some misconceptions, please correct me thanks.
SHORT VERSION According to Nyquist's theory, if I want to digitally record a live opera and be able to reconstruct back to exactly the original sound quality, I have to sample at at least twice the frequency of the original signal. (1) Am I right on this? (2) But an opera has lots of different instruments and voices all at different frequencies. At twice of which frequency do we sample? LONG VERSION Nyquist's theory says if you want to sample something, and be able to reconstruct to get the original, then you have to sample at at least twice the frequency of the original signal. For example assume there is a rather complex wave, which can be plotted on Y vs X axis, and its frequency is f. Looking at the graph of this curve, it is made of a huge number of points on the XY plane. For example each X has a corresponding Y value. Suppose I want to note down only some values of the curve, and hope I can reconstruct back to get the exact original complex wave from only the values I jotted down. Imagine I walk along the xaxis and periodically I look at the Y value and I note it down. How often do I have to record a Y value, in order for me to be able to later reconstruct the original complex wave exactly the way it is? Ie. what should my minimum sampling rate be, in order to be able to reconstruct the original signal exactly, using my sampled values. According to Nyquist's theory, if the original wave is of frequency f, then I have to sample at a frequency of at least 2f in order to be able to reconstruct back to original exact wave. Am I right so far? My second question is this: suppose that original complex wave is recording of an opera. It's going to have all sorts of instruments plus the singer. What do you call the frequency of this complex wave? It's going to be a wave complex as hell, what do you call its frequency? Do we break it down by Fourier Transformation and then deal with each component wave separately? Thanks very much. Hope my two questions are clear. Firstly am I right about Nyguist's theory, and secondly what's the frequency of opera recording. (Please note this is not home work. I know my questions might sound like home work but I assure you they are not. I don't get home work). 


#2
Mar412, 03:32 PM

Mentor
P: 11,602

In practice, I suspect that most commercial recording of opera or other classical music nowadays is done at a sample rate of 96 kHz. This preserves frequencies up to 48 kHz, which is well above a human's hearing range (at least an octave). Then they use software to resample it downwards to 44.1 kHz for CD, or to 48 kHz for DVD or Bluray. There are also places where you can buy and download 96 kHz files. To play them, you need an audio system with a digitaltoanalog converter (DAC) that can handle them. 


#3
Mar412, 06:09 PM

Engineering
Sci Advisor
HW Helper
Thanks
P: 6,931

This is not just a matter of exceeding the range of human hearing. It also means any digital noise introduced in the signal processing and mixing can be spread over the whole frequency range up to the Nyquist frequency, and most of it is then eliminated when the signal is resampled at a lower frequency. 


#4
Mar412, 06:24 PM

Sci Advisor
PF Gold
P: 3,505

How does Nyquist's theory apply to digital recording of opera music?
There's got to be practical limits to that?
Sampling at just 2x a frequency might be fine for steady tone, but what if it's amplitude modulated or just short bursts, like the snare in Bolero? I have to believe you could hear the difference between a 40khz sampled and a 192 khz sampled recording. In other words, all digital recordings are not created equal. But i am not an audio professional, so am asking not asserting. 


#5
Mar512, 03:15 AM

P: 132




#6
Mar512, 04:20 AM

Sci Advisor
PF Gold
P: 2,241

If you e.g. look at a square wave you can usually get away with just retaining frequencies 3x the rise time if you want to be able reconstruct the signal again (but you need to multiply that by 2 if you are sampling, because of the possibility of aliasing). The more frequency components you retain, the better the reconstruction. In reality there is no need to keep frequencies above about 20 kHz, since our ears can't hear those anyway (and will "smooth" any square wave anyway). 


#7
Mar512, 05:43 AM

P: 13

@ f95toli: What do you mean "The more frequency components you retain, the better the reconstruction"? Do you mean even if I sample at 2f, I still won't be able to reconstruct back to the exact original signal? I think this is where I have some misconception. I thought, if you sample at 2f, then you can reconstruct the original wave 100% ie. exactly the same as the original. But you are saying, 3f will allow even better reconstruction, 4f even better, 5f yet better etc. Higher sampling rate, the closer your reconstructed wave is to the real original wave. Right? My question now is: when I sample at 2f, and I use the sampled data to reconstruct. How close is my reconstructed wave to the real original wave? How do you even give a number to describe closeness of resemblance? And what would that number be like when I restore using data sampled at 2f sampling rate? Thanks a lot. Hope my questions are clear. Basically asking, if I sample at 2f and reconstruct, how close is the reconstructed wave in comparison to the true original wave? @ jim hardy: But even Bolero with progressive increase in overall amplitude, new instruments still keep coming in. You still will get more and more frequencies joining in. So I take it whatever instrument has the highest frequency, you'll need to sample at twice that frequency. 


#8
Mar512, 07:09 AM

Sci Advisor
PF Gold
P: 2,241

However, in order to reconstruct for example a square wave you would need an infinite number of frequency components and there IS theoretically no highest frequency. But, this is only an issue for an "ideal" square wave, any realworld signal (including the sound from a musical instrument) will have a finite bandwidth. Moreover, your hearing can only pick up signal with a maximum frequency of about 20 kHz, so there is no need to record frequency components much higher than that (which is why 44 kHz is the CD standard, 2x20 kHz plus a few kHz to allow for the filtering) 


#9
Mar512, 07:09 AM

Engineering
Sci Advisor
HW Helper
Thanks
P: 6,931

But if your final delivery format is going to be low quality MP3s played on low quality hardware (and that is how large sections of the music industry make money) I entirely agree high sample rates are overkill. 


#10
Mar512, 07:20 AM

Engineering
Sci Advisor
HW Helper
Thanks
P: 6,931

The CD standard for audio was based on what was technically feasible to implement 30 years ago. The DVD audio standard (which is more than 10 years old!) supports sampling up to 192 kHz. 


#11
Mar512, 08:50 AM

P: 13

However if the original is made of digital signals which are artificial, square waves, then intuitively it makes sense no matter how many finite sine waves I use, I won't be able to represent exactly that artificial square wave. Here comes my question through: Suppose we have a digital signal that goes 1,0,1,0,1,0 and so on, and I want to represent it as sum of sine waves. You are saying I will need infinite number of sine waves to exact it, right? How about this? Wouldn't adding these two sine waves together give you that exact digital signal? y1 = square root of (sin x)^2 y2 = 1  [ square root of (sin x)^2 ] In otherwords, y1 is only the positive parts of this graph y = sinx y2 is only the positive part of y=sinx and that being taken away from 1 The computer can draw both curves very well. And they both come from perfect sine waves, just massaged a bit. So now if I tell the computer to calculate Y = y1 + y2, that'll give you Y = 1 for x is 0  pi/2. Then for x = p/2 to pi, Y is 0 Then for x = pi to 3pi / 2 , Y is 1 again. So on and so forth you get your 1,0,1,0,1,0... Isn't this reproducing a square wave exactly using sine waves? 


#12
Mar512, 10:37 AM

Sci Advisor
PF Gold
P: 11,900

I can't find any mention of quantising levels here. The benefit of high sample rate is to reduce quantisation noise. You can use two level sampling as long as your sample rate is high enough.



#13
Mar512, 07:54 PM

P: 886

But, you don't have to use Fourier Transform if you don't want to. You could use a wavelet transformation instead. In particular, if you use the Haar wavelet (https://en.wikipedia.org/wiki/Haar_wavelet), I think the square waves will come out nicely. 


#14
Mar612, 03:57 AM

Sci Advisor
PF Gold
P: 11,900

The performance of any practical system is going to depend on both the number of quantising levels and the sample rate (that is, if your sampling is on the basis of a series of amplitude samples). However you choose to analyse your input signal mathematically, you won't get a different answer for the Nyquist rate for sampling. People forget that Sampling and Quantisation are two different issues. Nyquist does not concern itself with limiting the precision of the samples: analogue samples are assumed in the basic theory. In practice, the samples will be digitised (quantised) and that brings in other considerations. The answer to the OP is, I think, that Nyquist applies to all sampling operations in the same way. The Nyquist limit assumes perfect filtering of your input signal, with none of the signal spectrum being higher than f_{s}/2 so you are immediately into the realms of what is practicable. If you oversample then you can accommodate the characteristics of practical antialiasing filters. 'Gross' oversampling can allow you to use further filtering which can be a good engineering solution. The "digital" part of the question then introduces Quantisation and other factors. The chosen solution will depend upon the available technology. Processing speed and distortion (linearity) were both at their limits for early ADCs. All sorts of combinations were tried. These days, the big interest is in coding those original samples to achieve extreme bit rate reduction with no subjective impairment. Where did Hi Fi in the Home go? How many people actually listen to really good quality sound any more? The choice of Opera as an example is a very good one in that it is one of the most complex of audio signals to deal with and has a very discerning audience. It sounds really rubbish if you try to squeeze it into a few kb/s. But that's all way down the line from the simple, basic requirement of Nyquist  which is always with us. 


#15
Mar612, 05:36 AM

HW Helper
P: 7,033

If sampling a monotone (constant frequency, constant amplitude) sound wave at exactly 2f, the amplitude information will be lost (except for the case where samples occur at peak frequencies), so the sampling rate needs at least some tiny amount greater than 2f. There's also some issue with how digital to analog circuits work, and other pratical limitations. Wiki article:
http://en.wikipedia.org/wiki/Nyquist...considerations 


#16
Mar612, 05:55 AM

Sci Advisor
PF Gold
P: 11,900

No one said it would be easy to do, remember. That's why they leave sufficient headroom for the practicalities of Nyquist Filtering. 


#17
Mar612, 06:41 AM

Sci Advisor
PF Gold
P: 2,241

These are used a part of the (potentially very long) signal chain when for example mixing (which in all likelihood also involves some plugins etc.). Now, the "problem" with using external analogue equipment is of course that you need to go through a D/A  outboard A/D chain every time. If you do this enough times you'll get signal degradation unless very high spec converters are used. Moreover, since we are not actually recording NEW sounds there is no "natural" limit to the bandwidth which means it makes sense to use a high sample rate (with lots of bit, many plugins use 32 bits internally for the same reason). Hence, whereas music is typically RECORDED at say 96kHz/24 bit higher sample rates (and more bits) are often used during mixing/mastring. Besides, using anything higher than 96 kHz for recording would be pointless since no microphone has a BW much higher than perhaps 30 Khz, and most roll off much earlier than that. (caveat: My only sources of knowledge in this field comes from reading SoundOnSound for many years, reading books and doing some hobby recordings using Pro Tools; I am in no way an expert). 


#18
Mar612, 07:02 AM

Sci Advisor
PF Gold
P: 11,900

This whole business is a massive mixture of theory and practice. If we're talking about the needs of high quality Opera recordings then the 'sampling end' of things is relevant  along with Nyquist matters. If we're squeezing all our 'easy listening' music onto a ipod then the MP coding will do enough damage to cover any ADC inadequacies.



Register to reply 
Related Discussions  
What maths does DigitalSignal Processing use? Does it apply to other areas?  Electrical Engineering  2  
Music Theory  General Math  11  
Apply kinetic theory to solids and liquids?  Classical Physics  2 