Spectral Selection width in kHz?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
brian0918
Posts: 12
Joined: Tue May 07, 2019 1:33 pm
Operating System: Windows 7

Spectral Selection width in kHz?

Post by brian0918 » Thu May 28, 2020 12:09 pm

I need to be able to measure the difference between the highest and lowest frequency in a selection. I have been selecting an area on the spectrogram and then using a calculator to get the difference. The option in the spectral selection toolbar for "center frequency and width" shows the width in octaves, but there is no option for Hz/kHz. Is there a plugin available that can do this, or any way around this? I have to do this hundreds of times, so it would save some calculation if it just displayed the difference between top and bottom of the selection in Hz or kHz.

Here's an example of what I'm looking at:
Capture.JPG
Capture.JPG (122.44 KiB) Viewed 113 times

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Spectral Selection width in kHz?

Post by steve » Thu May 28, 2020 12:17 pm

brian0918 wrote:
Thu May 28, 2020 12:09 pm
The option in the spectral selection toolbar for "center frequency and width" shows the width in octaves, but there is no option for Hz/kHz.
There's an option for "Low and High Frequencies".

Alternatively, you could get the width in kHz by running this code in the Nyquist Prompt effect:

Code: Select all

;version 4
(* 0.001
  (- (get '*selection* 'high-hz)
     (get '*selection* 'low-hz)))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply