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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user