29 #ifndef SPECTROGRAM_HDR 30 #define SPECTROGRAM_HDR 57 void apply_acc(std::complex<float> * invec,
unsigned int inveclen,
59 float accumulation_gain = 0.0);
70 void apply_max(std::complex<float> * invec,
unsigned int inveclen,
71 float * outvec,
bool first =
true);
87 void apply_common(std::complex<float> * invec,
unsigned int inveclen);
float * initBlackmanHarris()
all spectrograms are under a blackman harris window
void apply_acc(std::complex< float > *invec, unsigned int inveclen, float *outvec, float accumulation_gain=0.0)
Calculate the spectrogram from an input vector – add it to an accumulation buffer.
Spectrogram(unsigned int fftlen)
Constructor.
std::complex< float > * win_samp
std::complex< float > * fft_out
Spectrogram generates magnitude buffers from input sample stream.
void apply_max(std::complex< float > *invec, unsigned int inveclen, float *outvec, bool first=true)
Calculate the spectrogram from an input vector – add it to an accumulation buffer.
void apply_common(std::complex< float > *invec, unsigned int inveclen)
this is the common spectrogram calculation (window + fft + mag)