11#ifndef __AUDACITY_SPECTROGRAM_SETTINGS__
12#define __AUDACITY_SPECTROGRAM_SETTINGS__
19#undef SPECTRAL_SELECTION_GLOBAL_SWITCH
43#ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH
44 bool spectralSelection;
54 LogMaxWindowSize = 15,
56 NumWindowSizes = LogMaxWindowSize - LogMinWindowSize + 1,
99 PointerType
Clone()
const override;
103 return this == &defaults();
106 bool Validate(
bool quiet);
112 void InvalidateCaches();
113 void DestroyWindows();
115 void ConvertToEnumeratedWindowSizes();
116 void ConvertToActualWindowSizes();
120 float findBin(
float frequency,
float binUnit )
const;
123 NumberScale GetScale(
float minFreq,
float maxFreq )
const;
128 bool SpectralSelectionEnabled()
const;
146 return algorithm == algPitchEAC ? 1 : zeroPaddingFactor;
149 size_t GetFFTLength()
const;
150 size_t NBins()
const;
165 void Migrate(wxString &value)
override;
171#ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH
185#ifdef EXPERIMENTAL_FFT_Y_GRID
189#ifdef EXPERIMENTAL_FIND_NOTES
191 double findNotesMinA;
193 bool findNotesQuantize;
229 void GetBounds(
const WaveChannel &wc,
float &
min,
float &max)
const;
232 { mSpectrumMin =
min, mSpectrumMax = max; }
235 float mSpectrumMin = -1, mSpectrumMax = -1;
Utility ClientData::Site to register hooks into a host class that attach client data.
std::unique_ptr< FFTParam, FFTDeleter > HFFT
WAVE_TRACK_SETTINGS_API IntSetting SpectrumMaxFreq
std::vector< TranslatableString > TranslatableStrings
Adapts EnumSettingBase to a particular enumeration type.
Specialization of Setting for int.
A listener notified of changes in preferences.
virtual void UpdatePrefs()=0
void SetBounds(float min, float max)
~SpectrogramBounds() override
Spectrogram settings, either for one track or as defaults.
static ColorSchemeEnumSetting colorSchemeSetting
size_t ZeroPaddingFactor() const
size_t WindowSize() const
A PrefsPanel for spectrum settings.
A Track that contains audio waveform data.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
A convenient base class defining abstract virtual Clone() for a given kind of pointer.
virtual PointerType Clone() const =0
Owner< Base > PointerType
Cloneable & operator=(const Cloneable &)=default