#include <Spectrogram.hxx>
|
| void | apply_acc (std::vector< std::complex< float > > &invec, std::vector< float > &outvec, float accumulation_gain=0.0) |
| | Calculate the spectrogram from an input vector – add it to an accumulation buffer.
|
| void | apply_max (std::vector< std::complex< float > > &invec, std::vector< float > &outvec, bool first=true) |
| | Calculate the spectrogram from an input vector – add it to an accumulation buffer.
|
| | Base (const std::string &oname) |
| | The constructor – pass a name for the object.
|
| void | registerSelf (BasePtr ptr) |
| std::string & | getObjName () |
| | get the name of this object
|
| BasePtr | findSoDaObject (const std::string &oname) |
| | find a SoDa Object by name.
|
| double | getTime () |
| | Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS).
|
| BasePtr | getSelfPtr () |
| | get a pointer to myself.
|
|
| float * | initBlackmanHarris () |
| | all spectrograms are under a blackman harris window
|
| void | apply_common (std::vector< std::complex< float > > &invec) |
| | this is the common spectrogram calculation (window + fft + mag)
|
Definition at line 46 of file Spectrogram.hxx.
◆ Spectrogram()
| SoDa::Spectrogram::Spectrogram |
( |
unsigned int | fftlen | ) |
|
|
protected |
Constructor.
- Parameters
-
| fftlen | how many frequency points in the spectrogram buffer |
Referenced by make().
◆ apply_acc()
| void SoDa::Spectrogram::apply_acc |
( |
std::vector< std::complex< float > > & | invec, |
|
|
std::vector< float > & | outvec, |
|
|
float | accumulation_gain = 0.0 ) |
Calculate the spectrogram from an input vector – add it to an accumulation buffer.
- Parameters
-
| invec | the input sample buffer |
| outvec | the result buffer |
| accumulation_gain | (out = result + out * acc_gain) |
◆ apply_common()
| void SoDa::Spectrogram::apply_common |
( |
std::vector< std::complex< float > > & | invec | ) |
|
|
private |
this is the common spectrogram calculation (window + fft + mag)
- Parameters
-
| invec | the buffer we're going to operate on |
◆ apply_max()
| void SoDa::Spectrogram::apply_max |
( |
std::vector< std::complex< float > > & | invec, |
|
|
std::vector< float > & | outvec, |
|
|
bool | first = true ) |
Calculate the spectrogram from an input vector – add it to an accumulation buffer.
- Parameters
-
| invec | the input sample buffer |
| outvec | the result buffer (out = max(result, out)) |
| first | if true, ignore contents of outvec... |
◆ initBlackmanHarris()
| float * SoDa::Spectrogram::initBlackmanHarris |
( |
| ) |
|
|
private |
all spectrograms are under a blackman harris window
◆ make()
◆ fft_len
| unsigned int SoDa::Spectrogram::fft_len |
|
private |
◆ fft_out
| std::complex<float>* SoDa::Spectrogram::fft_out |
|
private |
◆ fftplan
| fftwf_plan SoDa::Spectrogram::fftplan |
|
private |
◆ result
| float* SoDa::Spectrogram::result |
|
private |
◆ win_samp
| std::complex<float>* SoDa::Spectrogram::win_samp |
|
private |
◆ window
| float* SoDa::Spectrogram::window |
|
private |
The documentation for this class was generated from the following file: