AVS › AVS Forum › Audio › DIY Speakers and Subs › Question about Spectrum Lab
New Posts  All Forums:Forum Nav:

Question about Spectrum Lab

post #1 of 30
Thread Starter 
i created a sine wave, 50hz, 10 cycles long in audacity.

then i capture it in spectrum lab.

instead of seeing a single pulse at 50hz, which is what i was expecting, this is what i got.

anybody know what is going on?

(this is an electronic capture, not a mic'd recording through speakers).

i ask because lots of folks post spectrum lab graphics, but do we know what we are actually looking at?

thanks in advance for any comments.


LL
post #2 of 30
That's likely a setting that is off somewhere is my guess. Some kind of digital noise created in the audacity file (I'd guess it's something between the sc and audacity perhaps a sampling rate mismatch)?
post #3 of 30
A couple of things.

The abrupt start and stop of your signal creates frequencies other than 50Hz. The strongest is at 5Hz because the total signal lasts .2 sec. Those extra tones modulate the 50Hz tone and create the sidebands above and below 50. Note the approx 5Hz spacing of the sidebands.

I don't have any experience with Spectrum Lab so I don't know why it's creating those odd order distortion products centered at 150, 250, etc. Maybe it's clipping? Try generating a signal with lower amplitude and see if those go away.

Here's what it looks like in ARTA. I added a 1 sec silence after the .2 sec signal to give the FFT enough samples to work with. I imported the wav as an impulse response, gated it to .2 seconds, and then generated the frequency response. Other than the log frequency scale, I'd think you should be seeing something similar in Spectrum Lab.




LL
LL
post #4 of 30
Thread Starter 
"That's likely a setting that is off somewhere is my guess. Some kind of digital noise created in the audacity file (I'd guess it's something between the sc and audacity perhaps a sampling rate mismatch)?"

when i analyze the spectrum in audacity, the harmonics are not there, just a runup to the 50hz spike, then a rather rapid rolloff afterward.

"The abrupt start and stop of your signal creates frequencies other than 50Hz. The strongest is at 5Hz because the total signal lasts .2 sec. Those extra tones modulate the 50Hz tone and create the sidebands above and below 50. Note the approx 5Hz spacing of the sidebands."

when i extend the length to .4 seconds (20 cycles), i get more ripples, not less.



then, i run a 15 second sample from audacity, and get this.



you can see the weirdness is on the start and stop. over most of the range the tone at 50hz looks as i would expect. however, the harmonics are still present.

when i plot the spectrum in audacity, the 15 second sample looks the same as the 5 and 10 cycle samples (no harmonics).

"I don't have any experience with Spectrum Lab so I don't know why it's creating those odd order distortion products centered at 150, 250, etc. Maybe it's clipping? Try generating a signal with lower amplitude and see if those go away."

i can see the waveform in audacity, so i know it is not clipping there.

then, i turned the volume down by 50%, and get this:



winner!

apparently the harmonics were being generated in spectrum lab because of clipping. now, that seems like a problem because who knows how much content was the result of spectrum lab clipping (in all the spectrum lab plots)?

the reason i was interested in this is because some time ago ricci posted some spectrum lab plots of drum hits and they had that same spreadout looking frequency response, which didn't make sense to me because the fundamental of a drum should not be spread over 15-20hz or so, it should be pretty tight. drum shots are around 5-6 cycles or so, btw.
LL
LL
LL
post #5 of 30
Thread Starter 
and for completeness, this is how a 5 cycle, 50hz, sine wave appears in spectrum lab:


LL
post #6 of 30
Thread Starter 
this raises another question. if an amp clips during a kick drum hit, are all those other harmonics created through actual speakers (not talking spectrum lab here).
post #7 of 30
Quote:


when i extend the length to .4 seconds (20 cycles), i get more ripples, not less.

Right. You get sideband every 2.5 Hz (1/.4). Those sidebands are real, strictly a result of the shape of the signal you are analyzing. I don't know how you got those curves with no ripples but they aren't real. But then I don't know jack about SL.

About a kick drum, it's a broadband signal. It has a loudest fundamental but it also contains tons of other frequencies. And yes, clipping creates odd harmonics wherever it happens in the signal chain -- mic, amp, sound card, software, whatever.
post #8 of 30
Thread Starter 
"Right. You get sideband every 2.5 Hz (1/.4). Those sidebands are real, strictly a result of the shape of the signal you are analyzing."

oh, gotcha.

"I don't know how you got those curves with no ripples but they aren't real. But then I don't know jack about SL."

the curves on top are averages. in sl, the ripple shows up as those wide streaks in the lower part of the chart.

"About a kick drum, it's a broadband signal. It has a loudest fundamental but it also contains tons of other frequencies."

i got that, but in sl, the fundamental appears to be 20db wide, which i can't imagine that it is.

"And yes, clipping creates odd harmonics wherever it happens in the signal chain -- mic, amp, sound card, software, whatever."

that's really good to know. i knew clipping created all sorts of problems, but i didn't know that introduction of odd harmonics could be so significant.
post #9 of 30
I doubt it was Spectrum Lab clipping. It was more than likely the audio encoder in Audacity adding the harmonics.

Check out the raw file Audacity output in Cool Edit to check the wave form out.

I had the same problem when doing my test DVD with sine waves above ~-6dB. The input wave was fine, but the wave to Ac3 (not using Audacity) encoding added harmonics.

The best free/shareware to do this type of thing is the old NCH Tone Generator and/or Cool Edit 95 or Pro. Audacity will only give you a headache tracking random issues.


Edit: adding a little fade in/out at a 1/4-1/2 wave will help some of the issues here.

 

NCH Tone Gen.zip 89.4482421875k . file
post #10 of 30
I just bought NCH tone generator a few months ago. It can do some cool versatile things and I've not had any problems with it.
post #11 of 30
Thread Starter 
cool. could either of you guys create a 5 cycle, 50hz, test tone in one of those two programs and then capture it in sl, just so that i can see how it would look?
post #12 of 30
FWIW, I generated my wav files in Audacity with no clipping even at gain = 1. What happens if you send them through a sound card, I don't know. That would probably be a setup issue. I don't know why Soho had problems with a straight software conversion (no sound card.)
post #13 of 30
100ms


100ms zoomed in



3seconds
post #14 of 30
Ricci,

That is the best color map I have seen posted.

If you decreased "C" a little (to make 0 white, instead of going pink-white-pinkish/purple) I would say was perfect.
post #15 of 30
I never meant to imply that Audacity would clip the signal. Only that I would look there (first and then elsewhere) before determining that SL was clipping things, or at fault from just this.

I haven't tried Audacity in years, as it failed my accuracy testing, and I stuck with Cubase, Sound Forge, and Cool Edit. At that time it added some aliasing, and a lot of the plug-ins added harmonics IIRC. It was unable to retire CE. This is why there is a negative Audacity slant in the former post, in this test tone thread.

If you play around with different audio formats and encoder software you will find that a lot of them add extra info to a wave if you go back and compare. With sine waves a lot of the time you can hear it when played back to back. With music however, it isn't a big deal. You can almost never tell. Nothing out of the ordinary here.

Audacity is great for it's intended purpose, but I would be worried about it before Spectrum Lab.


What I don't understand is why you are using such high levels in some of those graphs. The 50% pic is ~+8dB, and the 100% is off the chart. Did you calibrate the line in and outs? I would really check there.

Since Ricci added the SL, here is the FR of a 5 cycle, 50Hz wave at 0dB.

 

ok.zip 6.896484375k . file
post #16 of 30
Thread Starter 
"What I don't understand is why you are using such high levels in some of those graphs. The 50% pic is ~+8dB, and the 100% is off the chart. Did you calibrate the line in and outs? I would really check there."

i made the mistake in assuming that if i played a sample from audacity that went to 0db at the peak of the sine wave, had my sound card turned all the way up, and recorded in spectrum lab, that it would peak at 0db. that was wrong. i didn't even notice that i was off the chart. that is what was causing the clipping and the associated harmonics.


now, let's talk about about these sidebands (that is what i was referring to as "weirdness" above). they are present in my cleaned up plot, ricci's plot, and soho's plot.

there also appears to be some sort of sidebanding going on in ricci's actual recording (bottom picture: Rolling bass drum paradiddle / floor tom roll at 2m from the kick.):
http://www.avsforum.com/avs-vb/showp...2&postcount=71

what is confusing the heck out of me is our test tone and ricci's drum both appear to have a fundamental of right around 50hz. however, because both are short bursts of perhaps 5 cycles (per strike in ricci's case), all these sidebands show up and are significant relative to the fundamental. the sidebands extend down to ~10hz or so.

does this mean that one needs a speaker/subwoofer system capable of 10hz in order to properly playback either of these samples (a sine wave burst at 50hz and/or ricci's bass drum)?

also, in a mastering studio, it is common to high pass around 25-30hz for rock music. this would seem to cut out most of the low sidebands. by doing this, it would seem to change the sound of the drum if it is necessary to hear all the sidebands in order to have an accurate recreation of the original sound. am i on the right track here, or do i have it all wrong?
post #17 of 30
Thread Starter 
also, if the main energy in the bass drum is 5 cycles or so per strike and has a fundamental of 50hz, then if you could strike the drum 10 times per second, it would seem that you could maximize the ratio of sidebands to the fundamental. i wonder if that is part of the "energy buildup" that seems to occur when drummers go crazy on the pedals.
post #18 of 30
I see what you are getting at now. I've been wondering the same things. Is the side band content real? It certainly looks like it is.

For some reason I keep going back to Tom D. talking about transients having content that covers a huge spectrum that rolls off on each side of the fundamental.
post #19 of 30
OK, lets see...

What you are seeing with sine waves is more a product of the way the graph is produced and the wave is simulated than anything else. As catapult stated earlier. It is the way the the start and cutoff of the wave is calculated. This is why when the start and cutoff is far enough apart you get the straight line between the blooms. If you play different different areas of the wave you can get different results.

This is why I included a pic at two different FFT windows. The peak area is all that matters here, all the rest might as well be noise.

With real waves it gets complicated. Musical instruments play a fundamental frequency, but the harmonics are what make everything sound different. This is what a majority of timbre is. In some cases the harmonics are louder than the fundamental. This is called natural frequency(ies), over tones, or formant. This is a different phenomenon from what you are seeing in the sine wave graphs.

A kick drum (any drum) will not have a single fundamental. Based on where it is struck you will get several modes across the surface of the drum, a closed end air column resonance, attack, and a shell resonance.

Look at his "close mic kick bass detail" pic. There are peaks at 40, 55, 70, 80, and 115Hz the way Ricci has his drum tuned. Now if you go hit some sound mixing sites you will see that the classic rock sound is an added EQ emphasis at 80-90Hz, and the new harder sound is EQed to emphasize 40-50Hz. The area below would be rolled off. The key is where you want the bass and drum to be placed. The traditional way is to have the bass be the low end, and the drum is for impact. The new age has the drum defining the low end, while the bass is used in a more melodic way, as opposed to just adding balls. If he expanded the graphs you would see peaks all the way up into the thousands.

There is zero time spent on accurately representing an instrument in mixing. The only thing that matters is how it sounds.

Quote:


does this mean that one needs a speaker/subwoofer system capable of 10hz in order to properly playback either of these samples (a sine wave burst at 50hz and/or ricci's bass drum)?

Yes and no. To do it exactly yes, but as with everything there is a point of diminishing returns.

Quote:


i wonder if that is part of the "energy buildup" that seems to occur when drummers go crazy on the pedals.

I would say it is more of a physical buildup with the surface nodes becoming randomized to a point. Think of a sink of water. Take your finger and tap the surface crisply one time and watch the wave pattern. Now do it over and over again moderately, and watch new patterns slowly take form. Change tempo and they will fall apart, and then form up again. This is what is happening to the drum head, and I think would cause the effect you are talking about.
post #20 of 30
if you take the same wave I attached to post 15, and fade in and out during the first and last cycle you get this.

I used a -45dB starting and ending point.


I uploaded the wrong pic. This is the corrected one. I didn't do it at 0dB so it is ~6dB lower than the previous one FWIW.
post #21 of 30
Soho,

Don't you use NCH? I remember that it could add a fade in and out to the signal but I could not seem to find that option last night. I was going to try it and see what the difference it made was.
post #22 of 30
OK, last random post here.

I think part of the problem is the range most people use on these graphs. Does that nice bloom -40dB down from the peak mean anything in the real world?

Here is a test.

First off SL should be calibrated just like any other system. Using a know signal you should adjust the line levels until the SL graphs pretty closely to it. Since we are using generated files here make one at -10dB, and calibrate to that.

Create a wave containing three sine waves, as this is mostly an LFE thing let's go with 15, 30, and 60Hz. The first wave should have all tones at -5dB, be a few seconds long, and be faded in/out from -70dB. In each consecutive wave should have 30Hz be -10dB from the last.

The test will be to tell at what point 30Hz becomes irrelevant to your ear. If would be more relevant if you made several runs with different tri-tones, but one should be a start. 30-60-120Hz would be nice, as well as randomizing the variable tone.
post #23 of 30
Quote:
Originally Posted by Ricci View Post
Soho,

Don't you use NCH? I remember that it could add a fade in and out to the signal but I could not seem to find that option last night. I was going to try it and see what the difference it made was.
I used the old free version, and it doesn't have fading capability. I used Cool Edit for the fading, and to make sure it was 5 cycles.

I can post the wave for you if you want. Here it is. I didn't bump it up to 0dB this time. I also used linear fading, log would look a little different.

 

Ok3.zip 4.9814453125k . file
post #24 of 30
OK, I got done watching Avatar and I was bored.

Here is a 15-30-60Hz masking test. I went from 30Hz at 0dB to -40dB in 10dB hops.

All files are within 1dB of each other peak wise, with the highest being -.3dB. I leveled with RMS which is at -4.25dB for all.

Honestly, I can't tell a difference between -20 and -30. This means the cutoff here is probably a little north of -20dB. EDIT: with headphones, it is to late to rattle the windows with the wife in bed above me.

I might try it with the tones placed further apart.

http://rapidshare.com/files/381014342/masking_test.zip

15-30-60Hz just goes good with this image from wikipedia.
http://en.wikipedia.org/wiki/File:Audio_Mask_Graph.png
post #25 of 30
Thread Starter 
thanks for putting this test together soho. i can't hear any difference. i kept going back and forth between the 0 and -40 and every time that i thought that i could detect a nuance of a difference, when i tried it again, i could not hear any difference. the 45 and 75hz tones are completely masked by everyting else (if not by the 60hz tone alone).

on second thought, i'm concerned that the whole test is being masked by the 15hz and 30hz content. would it be possible to get rid of the 15hz signal altogether and repost? only the -0 and -40db would be required, since if we can't tell the difference between those, none of the others will matter.

also, i'm only seeing a change in the spl of the 45 and 75hz tones and to a lesser extent the 30hz tone. shouldn't all the sidebands (15, 90, 105, 120, et al) be shifted down for an accurate comparo?

also, fwiw, i found these two examples of real mic'd kick drums:





source: http://www.soundonsound.com/sos/jun0...ancemixing.asp
post #26 of 30
Quote:
Originally Posted by LTD02 View Post

i can't hear any difference. i kept going back and forth between the 0 and -40 and every time that i thought that i could detect a nuance of a difference, when i tried it again, i could not hear any difference.

Really? Hmm.. 0 to 10 should be no problem even at low volumes. 10 to 20 as well at moderate levels.

Quote:


the 45 and 75hz tones are completely masked by everyting else (if not by the 60hz tone alone).

This shows there is a problem. You levels are off. I have the fix.

First off, set up SL. Then run the 0dB wave in a loop in another program. Make sure all EQ settings are zeroed, or turned off.

Set the wave player, master, and wave (in advanced volume controls) sliders to ~75-85%. This is probably what you will get.


Now go to turn your line/mic-in slider all the way down. While watching the spectrum graph, raise the slider until the other peaks start showing up. Then back off a little. Like this:


If you go to far you get this again:


Now all three peaks should be pretty even, just not at 0dB. Go into the SL Spectrum options and adjust the Offset until the peaks are at 0dB like they should be, and you are done.



Note: this was done with a Gen 1 Audigy SC, so the S/N isn't great.
post #27 of 30
This is what I get for
0dB


-20dB


-40dB
post #28 of 30
Thread Starter 
thanks for helping me out with this soho. i had been clipping my signals. i didn't realize that the volume that hits 0db depends on the program used for playback. here is the image of my 0db now. before, it had all the interim frequencies almost as high as the three peaks.

i can hear a difference between 0 and -10db now, maybe a tiny diff between -10 and -20db, the others sound the same.


LL
post #29 of 30
Thread Starter 
random bit: turning down the fft sample rate to 1024 makes it possible to "watch" the kick drum. you can see how it starts off with higher frequencies and then rolls down to ~50hz or so. it's very fast, so you have to have a good eye. you can also see the electric guitar. it's kind of wild. speaking of wild, i'm listening to wild side right now (unclipped, well maybe just a little :-)).
post #30 of 30
Thread Starter 
so is what we are saying that for waveforms with rapid start/stop (such as a bass drum), additional frequencies called "sidebands" may get introduced. these show up in sl as a "smear" around the fundamental. the shape and amplitude of sidebands depends on the nature of the signal. the frequencies and amplitudes of measured sidebands led us to believe they might be audible. however, because of audio masking--a phenomenon whereby a louder sound may cause a quieter silmutaneously played sound not to be heard--these sidebands are, for the most part probably inaudible, and so can be ignored.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: DIY Speakers and Subs
AVS › AVS Forum › Audio › DIY Speakers and Subs › Question about Spectrum Lab