1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-16 17:41:15 +01:00

Bug1009: Correct interaction of Zero Padding and Frequency Gain...

... also an excuse to pull out a function I will want to reuse in a later
project.  The real fix was simply to use fftLen not windowSize.
This commit is contained in:
Paul Licameli
2015-06-03 13:11:17 -04:00
parent 54e9e4950c
commit ba5738446c
2 changed files with 34 additions and 18 deletions

View File

@@ -29,6 +29,8 @@
#include <wx/list.h>
#include <wx/msgdlg.h>
#include <vector>
class Envelope;
class WaveCache;
class WaveTrackCache;
@@ -187,6 +189,11 @@ public:
* calculations and Contrast */
bool GetWaveDisplay(WaveDisplay &display,
double t0, double pixelsPerSecond, bool &isLoadingOD);
void ComputeSpectrogramGainFactors(
int fftLen,
int frequencyGain, // db/decade
std::vector<float> &gainFactors
);
bool GetSpectrogram(WaveTrackCache &cache,
float *buffer, sampleCount *where,
int numPixels,