Audacity  3.0.3
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);
27 public:
28  SpecPowerCalculation(size_t sigLen);
30 
31  float CalcPower(float* sig, float fc, float bw);
32 };
33 
34 #endif
35 
SpecPowerCalculation::mSigFI
Floats mSigFI
Definition: SpecPowerMeter.h:23
SpecPowerCalculation::mSigLen
const size_t mSigLen
Definition: SpecPowerMeter.h:19
SpecPowerCalculation::CalcBinPower
float CalcBinPower(float *sig_f_r, float *sig_f_i, int loBin, int hiBin)
Definition: SpecPowerMeter.cpp:61
SpecPowerCalculation::Freq2Bin
int Freq2Bin(float fc)
Definition: SpecPowerMeter.cpp:73
SpecPowerCalculation
SpecPowerCalculation is a simple spectral power level meter.
Definition: SpecPowerMeter.h:18
SpecPowerCalculation::~SpecPowerCalculation
~SpecPowerCalculation()
Definition: SpecPowerMeter.cpp:35
SpecPowerCalculation::CalcPower
float CalcPower(float *sig, float fc, float bw)
Definition: SpecPowerMeter.cpp:39
SpecPowerCalculation::mSigFR
Floats mSigFR
Definition: SpecPowerMeter.h:22
SpecPowerCalculation::SpecPowerCalculation
SpecPowerCalculation(size_t sigLen)
Definition: SpecPowerMeter.cpp:27
SpecPowerCalculation::mSigI
Floats mSigI
Definition: SpecPowerMeter.h:21
SampleFormat.h
ArrayOf< float >