Audacity 3.2.0
SpecPowerMeter.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 SpecPowerMeter.h
6
7 Philipp Sibler
8
9**********************************************************************/
10
11#ifndef __AUDACITY_SPECPOWERMETER_H_
12#define __AUDACITY_SPECPOWERMETER_H_
13
14#include <cstddef>
15#include "SampleFormat.h"
16
18{
19 const size_t mSigLen;
20
24
25 float CalcBinPower(float* sig_f_r, float* sig_f_i, int loBin, int hiBin);
26 int Freq2Bin(float fc);
27public:
28 SpecPowerCalculation(size_t sigLen);
30
31 float CalcPower(float* sig, float fc, float bw);
32};
33
34#endif
35
SpecPowerCalculation is a simple spectral power level meter.
float CalcBinPower(float *sig_f_r, float *sig_f_i, int loBin, int hiBin)
const size_t mSigLen
int Freq2Bin(float fc)
float CalcPower(float *sig, float fc, float bw)
SpecPowerCalculation(size_t sigLen)