mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Define and use SpectrogramSettings::GetFFTLength()
This commit is contained in:
@@ -253,3 +253,12 @@ void SpectrogramSettings::CacheWindows() const
|
||||
}
|
||||
#endif // EXPERIMENTAL_USE_REALFFTF
|
||||
}
|
||||
|
||||
int SpectrogramSettings::GetFFTLength(bool autocorrelation) const
|
||||
{
|
||||
return windowSize
|
||||
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
|
||||
* (!autocorrelation ? zeroPaddingFactor : 1);
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
int zeroPaddingFactor;
|
||||
#endif
|
||||
|
||||
int GetFFTLength(bool autocorrelation) const; // window size (times zero padding, if STFT)
|
||||
|
||||
bool isGrayscale;
|
||||
|
||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||
|
||||
Reference in New Issue
Block a user