Page 1 of 3
Enhancements to Frequency Analysis
Posted: Sun Jun 03, 2012 2:07 am
by DickN
1:
It's very convenient (and cleaver, IMO) that the Cursor & Coordinate readouts are still updated when a Label or even some application other than Audacity has focus. Another useful case would be when an effect's UI has focus. I'm thinking in particular of Single Band Parametric EQ, which I use often to identify the offending spectral line among a pincushion of spikes. Is it feasible to keep the Cursor & Coordinate updating active while an effect is selected? It would suffice to be able to switch focus between the effect's UI and the Spectrum plot without closing the effect, since this would eliminate the need to keep re-selecting the effect from the menu.
2:
An option to set the bottom of the plot lower than -90 dB. Occasionally I can hear a frequency in the background but it doesn't show up in the Spectrum plot. I change the window, lower the resolution and fiddle with the display size on the screen to try to get the line to show up, but it never does. Today it was 480 Hz (I check power line harmonics first). Another time it was a familiar sound (modulated) and I knew where it was coming from, but the source can vary from 1063-1097 Hz. It's definitely not because I have "golden ears" (golden aged, maybe, but the tinnitus is unmodulated). Someone else requested weighting options for the Spectrum display. That might also be useful in these cases, since frequencies to which I'm less sensitive are quite prominent in the Spectrum plot.
Re: Enhancements to Frequency Analysis
Posted: Sun Jun 03, 2012 4:48 am
by Gale Andrews
DickN wrote:1:
It's very convenient (and cleaver, IMO) that the Cursor & Coordinate readouts are still updated when a Label or even some application other than Audacity has focus. Another useful case would be when an effect's UI has focus. I'm thinking in particular of Single Band Parametric EQ, which I use often to identify the offending spectral line among a pincushion of spikes. Is it feasible to keep the Cursor & Coordinate updating active while an effect is selected? It would suffice to be able to switch focus between the effect's UI and the Spectrum plot without closing the effect, since this would eliminate the need to keep re-selecting the effect from the menu.
I am not a Plot Spectrum expert, but I don't know how to update it except by using the Replot button. And the data is not even changed until you run the effect. Are you asking for real-time effects and analysis? If so that's work we don't have the resources for at the moment, and not all the developers would see it as a good return on time spent.
DickN wrote:An option to set the bottom of the plot lower than -90 dB.
This is currently done by reducing the "Meter/Waveform dB range" in the Interface Preferences. The Manual did not say this but I now added it.
Gale
Re: Enhancements to Frequency Analysis
Posted: Mon Jun 04, 2012 1:51 pm
by DickN
Gale Andrews wrote:This is currently done by reducing the "Meter/Waveform dB range" in the Interface Preferences. The Manual did not say this but I now added it.
That's for Spectrum mode in the Track display. I'm posting about Analyze->Plot Spectrum.
Gale Andrews wrote:
I am not a Plot Spectrum expert, but I don't know how to update it except by using the Replot button. And the data is not even changed until you run the effect. Are you asking for real-time effects and analysis? If so that's work we don't have the resources for at the moment, and not all the developers would see it as a good return on time spent.
No, I'm not asking for real-time display of effect preview or anything like that. I do use Replot occasionally when tweaking an effect's parameter settings, along with undo. When I have what I want, I undo the effect, expand the region and use Ctrl-R to apply the effect as tweaked to the whole intended region.
What I'm asking for is to have the numerical cursor coordinate displays responsive to the mouse cursor in the Plot window while an effect's GUI is open on the screen. I use Single Band Parametric much as one might use the Channel EQ on a mixing desk to "tune in" the offending frequency with boost, then cut it once I've precisely located it. In Audacity, I generally do the cutting with Notch if it's a single frequency. Being able to switch the focus between the Effect and Plot windows without closing the Effect would substantially expedite using Single Band Parametric to identify which spectral line I need to attenuate. I could move the cursor in the Plot window to the next suspect peak, read the frequency and try it in S.B.P. without having to reopen S.B.P. from the Effects Menu.
Re: Enhancements to Frequency Analysis
Posted: Tue Jun 05, 2012 7:24 am
by Gale Andrews
DickN wrote:Gale Andrews wrote:This is currently done by reducing the "Meter/Waveform dB range" in the Interface Preferences. The Manual did not say this but I now added it.
That's for Spectrum mode in the Track display. I'm posting about Analyze->Plot Spectrum.
I was aware what you were talking about, which was why I said "I am not a Plot Spectrum expert".
"Meter/Waveform dB range" has no effect whatsoever on the Spectrogram displays accessed in the Track Drop-Down Menu. It does affect the Waveform (dB) display accessed in the same way. If you reduce the Meter/Waveform dB range below the default of -60 dB,then you should be able to see lower amplitudes in Plot Spectrum (than you would otherwise). See
http://manual.audacityteam.org/man/Inte ... es#Display .
DickN wrote:Gale Andrews wrote:
I am not a Plot Spectrum expert, but I don't know how to update it except by using the Replot button. And the data is not even changed until you run the effect. Are you asking for real-time effects and analysis? If so that's work we don't have the resources for at the moment, and not all the developers would see it as a good return on time spent.
No, I'm not asking for real-time display of effect preview or anything like that. I do use Replot occasionally when tweaking an effect's parameter settings, along with undo. When I have what I want, I undo the effect, expand the region and use Ctrl-R to apply the effect as tweaked to the whole intended region.
What I'm asking for is to have the numerical cursor coordinate displays responsive to the mouse cursor in the Plot window while an effect's GUI is open on the screen. I use Single Band Parametric much as one might use the Channel EQ on a mixing desk to "tune in" the offending frequency with boost, then cut it once I've precisely located it. In Audacity, I generally do the cutting with Notch if it's a single frequency. Being able to switch the focus between the Effect and Plot windows without closing the Effect would substantially expedite using Single Band Parametric to identify which spectral line I need to attenuate. I could move the cursor in the Plot window to the next suspect peak, read the frequency and try it in S.B.P. without having to reopen S.B.P. from the Effects Menu.
That obviously cannot be done as now, because the effect dialogues are modal, so block off access to the other windows. The effect dialogues are modal because we do not have real-time effects.
I would suggest capturing an image of the Plot Spectrum window which would let you zoom it in an image editor.
You could also ask for the Export feature of Plot Spectrum to be improved so that it identified the peaks at whatever setting you had at time of export.
Gale
Re: Enhancements to Frequency Analysis
Posted: Tue Jun 05, 2012 11:49 pm
by steve
DickN wrote:An option to set the bottom of the plot lower than -90 dB. Occasionally I can hear a frequency in the background but it doesn't show up in the Spectrum plot. I change the window, lower the resolution and fiddle with the display size on the screen to try to get the line to show up, but it never does.
Sometimes changing the "Size" parameter can make spikes show up that otherwise don't.
If you normally work with a very large size parameter, try dropping it down to say 1024 or 2048.
Re: Enhancements to Frequency Analysis
Posted: Wed Jun 06, 2012 2:16 pm
by DickN
steve wrote:Sometimes changing the "Size" parameter can make spikes show up that otherwise don't.
If you normally work with a very large size parameter, try dropping it down to say 1024 or 2048.
That's what I meant by "lowering the resolution". Switching to the Blackman-Harris window also broadens the peaks so more of them show up in pixel columns. On my Vista machine, I can adjust the horizontal size of the plot window and it's refreshed as I'm dragging the edge. On my XP laptop it doesn't refresh until I release the mouse button. Peaks that show up in a single pixel column vary in height, sometimes from oblivion to -85 or so. There's room for improvement here IMO - a peak completely between pixel columns should show up in the adjacent columns. Maybe this is a Windows issue that would be a real headache to work around.
Re: Enhancements to Frequency Analysis
Posted: Wed Jun 06, 2012 2:27 pm
by DickN
Gale Andrews wrote:
I was aware what you were talking about, which was why I said "I am not a Plot Spectrum expert"...
Sorry, I'd completely missed the point you were making there.
I noticed a quirk in the Spectrogram display. The plot and the scale are out of alignment until you expand the scale.
Test:
1-Generate 10s 1kHz sine 0.1 amplitude.
2-Select Spectrogram (lin or log, doesn't matter) in the TCP. The line shows up around 350 Hz!
3-Expand the vertical scale (click in the scale). The line jumps to 1000 Hz.
I tried this on both XP and Vista, same result.
Re: Enhancements to Frequency Analysis
Posted: Wed Jun 06, 2012 4:10 pm
by steve
DickN wrote:Test:
1-Generate 10s 1kHz sine 0.1 amplitude.
2-Select Spectrogram (lin or log, doesn't matter) in the TCP. The line shows up around 350 Hz!
3-Expand the vertical scale (click in the scale). The line jumps to 1000 Hz.
What settings do you have in "Edit > Preferences > Spectrograms"
Is this with Audacity 2.0.0?
Re: Enhancements to Frequency Analysis
Posted: Wed Jun 06, 2012 5:01 pm
by DickN
Yes, running Audacity 2.0.0 on both machines.
On Vista machine:
Window Size = 2048
Window Type = Hanning
Min Frequency: 0
Max Frequency: 8000
Gain: 20
Range: 80
Frequency gain: 0
Show using grayscale is Unchecked.
On the XP laptop, I was experimenting and had Window Size set to max. It's normally 512 so the poor ole CPU can keep up with r/t. This setting didn't affect issue here. I also changed Gain and Range, not sure how I left them. Frequency gain is kind of a mystery to me. If it's anything but 0 the low frequencies disappear.
Re: Enhancements to Frequency Analysis
Posted: Wed Jun 06, 2012 8:03 pm
by steve
OK, I can reproduce the problem with "Spectrogram (log f)"
I can't reproduce the problem with the linear version of Spectrogram.
DickN wrote:Frequency gain is kind of a mystery to me
With most "normal" audio, very high frequencies tend to be lower amplitude than lower frequencies.
This setting makes the spectrum more sensitive to high frequencies.
Example, pink noise decreases in amplitude at a rate of 10 dB per decade (3 dB/octave).
If you look at the linear Spectrogram for low level pink noise (say 0.05 amplitude) you will see the Spectrogram is much more red at the bottom.
Change the frequency gain to 10 dB per decade and the Spectrogram will be a more even colour.