1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-19 09:17:54 +01:00

Pitch is no longer a special view type... && bug fixes 1040, 1041

... It is a choice of algorithm in spectrogram settings, and any frequency
scale may be chosen with it.  Spectral selection works in it.
This commit is contained in:
Paul Licameli
2015-06-20 12:15:49 -04:00
parent 981acf0bd2
commit adb4a534e8
11 changed files with 125 additions and 59 deletions

View File

@@ -64,6 +64,7 @@ public:
static void InvalidateNames(); // in case of language change
static const wxArrayString &GetScaleNames();
static const wxArrayString &GetAlgorithmNames();
static SpectrogramSettings &defaults();
SpectrogramSettings();
@@ -87,7 +88,7 @@ public:
// If "bins" is false, units are Hz
NumberScale SpectrogramSettings::GetScale
(double rate, bool bins, bool autocorrelation) const;
(double rate, bool bins) const;
private:
int minFreq;
@@ -117,7 +118,7 @@ public:
int zeroPaddingFactor;
#endif
int GetFFTLength(bool autocorrelation) const; // window size (times zero padding, if STFT)
int GetFFTLength() const; // window size (times zero padding, if STFT)
bool isGrayscale;
@@ -127,6 +128,14 @@ public:
bool spectralSelection; // But should this vary per track? -- PRL
#endif
enum Algorithm {
algSTFT = 0,
algPitchEAC,
algNumAlgorithms,
};
Algorithm algorithm;
#ifdef EXPERIMENTAL_FFT_Y_GRID
bool fftYGrid;
#endif //EXPERIMENTAL_FFT_Y_GRID