Plot spectrum.

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
юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Plot spectrum.

Post by юра00 » Fri Aug 31, 2018 3:45 pm

What is the minimum time interval of the track for plotting the spectrum?
Attachments
Untitled.png
Untitled.png (115.4 KiB) Viewed 249 times

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

Re: Plot spectrum.

Post by steve » Fri Aug 31, 2018 4:39 pm

It depends on the "Size" setting and sample rate.

The minimum time interval is the same as the "Size" setting in samples. So for the minimum size setting of 128, and a sample rate of 44100 Hz, the minimum duration is 128 / 44100 = (about) 3 ms.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Plot spectrum.

Post by DVDdoug » Fri Aug 31, 2018 4:53 pm

It's determined by the size which is the number of samples grouped together for analysis. (i.e. At a sample rate of 44.1Khz, 1/100th of a seconds is 441 samples.)

The math gets complicated but obviously you can't get the frequency from one or two samples and the more samples you use the more accuracy/resolution you get. But since most real-world sounds are constantly changing, it turns-out to be a mathematical compromise.
Size
This controls how many frequency divisions are used for the spectrum, or how many samples are used for autocorrelation. In Spectrum, a larger size gives more accurate frequency resolution (narrow bands), but averages the result over a longer period of time (because more samples are needed for the calculation). In Autocorrelation, a larger size looks for repeating patterns over a larger range of time offsets, and so will detect lower frequency patterns. With either algorithm, Audacity will show a warning if the selected region is too short for the chosen size.

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Plot spectrum.

Post by юра00 » Fri Aug 31, 2018 4:56 pm

Thank you! And is it possible to build a spectrum of not just a whole track but for particular selected audio?

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Plot spectrum.

Post by юра00 » Sat Sep 01, 2018 6:38 am

By analogy with the export selected audio. You can, of course, select, then delete all, that is out of the allocated, and plot spectrum. But can it be fulfilled directly?

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

Re: Plot spectrum.

Post by steve » Sat Sep 01, 2018 10:00 am

When there is selected audio, Plot Spectrum analyses the selected audio only, not the whole track.
If you modify the selection after opening Plot Spectrum, click the "Replot" button to update the spectrum display.
If multiple tracks, or parts of multiple tracks are selected, Plot Spectrum will analyse a mix of the selected parts of the selected tracks.
юра00 wrote:
Fri Aug 31, 2018 4:56 pm
is it possible to build a spectrum of not just a whole track but for particular selected audio?
Yes, just select the audio first and then open "Plot Spectrum", or if "Plot Spectrum" is already open, click the "Replot" button.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

юра00
Posts: 867
Joined: Mon Jan 21, 2013 11:26 am
Operating System: Windows 10

Re: Plot spectrum.

Post by юра00 » Sat Sep 01, 2018 10:51 am

Thank you!

Post Reply