1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Move class SpectrogramSettings to its own file

This commit is contained in:
Paul Licameli
2015-06-20 16:10:40 -04:00
parent da90e1b7c1
commit 786c1da645
12 changed files with 276 additions and 227 deletions

View File

@@ -28,6 +28,7 @@
#include "../Experimental.h"
#include "PrefsPanel.h"
#include "SpectrogramSettings.h"
class wxTextCtrl;
struct FFTParam;
@@ -74,56 +75,6 @@ class SpectrumPrefs:public PrefsPanel
#endif
};
class SpectrogramSettings
{
public:
static SpectrogramSettings &defaults();
SpectrogramSettings();
~SpectrogramSettings();
void UpdatePrefs();
void DestroyWindows();
void CacheWindows() const;
int minFreq;
int maxFreq;
int logMinFreq;
int logMaxFreq;
int range;
int gain;
int frequencyGain;
int windowType;
int windowSize;
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
int zeroPaddingFactor;
#endif
bool isGrayscale;
#ifdef EXPERIMENTAL_FFT_Y_GRID
bool fftYGrid;
#endif //EXPERIMENTAL_FFT_Y_GRID
#ifdef EXPERIMENTAL_FIND_NOTES
bool fftFindNotes;
bool findNotesMinA;
bool numberOfMaxima;
bool findNotesQuantize;
#endif //EXPERIMENTAL_FIND_NOTES
// Following fields are derived from preferences.
#ifdef EXPERIMENTAL_USE_REALFFTF
// Variables used for computing the spectrum
mutable FFTParam *hFFT;
mutable float *window;
#endif
};
class SpectrumPrefsFactory : public PrefsPanelFactory
{
public: