Actual tone frequency

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
pohon
Posts: 14
Joined: Mon May 25, 2015 1:56 am
Operating System: Please select

Actual tone frequency

Post by pohon » Wed Jul 01, 2015 1:58 pm

I'm generating a 250 hz tone with audacity 2.1.0 for windows, but when I view on spectogram it seems that the tone's frequency is less than 200 hz. Anyone can explain this?

I attach the screen shot below. My assumption is what I mark with that green line indicating the height of tone frequency.
freq.jpg
freq.jpg (32.81 KiB) Viewed 171 times

DVDdoug
Forum Crew
Posts: 9419
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Actual tone frequency

Post by DVDdoug » Wed Jul 01, 2015 2:18 pm

I don't know, but I trust the tone generation algorithm because it's mathematically simple... There's almost no way the frequency can be off.*

A spectrogram requires FFT and is about 100 times as complicated. And, there are compromises, trade-offs, and and choices (as you can see from the Spectrogram preference options in the menu).




* When you actually play the file, the frequency depends on the accuracy of your soundcard's clock (oscillator). No real-world clock is perfect, but your soundcard won't be off by 25% unless it's badly-badly defective. And the spectrogram analysis is not going through your soundcard.

The tone generation in the digital domain is essentially perfect and as close as you an get with integers. (And the sample rate is just an integer number, so it's value is "perfect" in the digital-data domain.)

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

Re: Actual tone frequency

Post by steve » Wed Jul 01, 2015 2:42 pm

pohon wrote:My assumption is what I mark with that green line indicating the height of tone frequency.
The frequency is the "brightest" part of the spectrum. With your current settings it only shows that frequency is "somewhere around" 200 to 700 Hz.
Increase the "Window size" ("Edit > Preferences > Spectrograms") to about 2048.
firsttrack000.png
firsttrack000.png (12.61 KiB) Viewed 164 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

pohon
Posts: 14
Joined: Mon May 25, 2015 1:56 am
Operating System: Please select

Re: Actual tone frequency

Post by pohon » Thu Jul 02, 2015 2:10 am

steve wrote:Increase the "Window size" ("Edit > Preferences > Spectrograms") to about 2048.
Ah, got it! Thanks Steve :D

Post Reply