#include <iso_synth_fft_threshold.h>
Inherits iso::synth::ProcessUnit.
Inheritance diagram for iso::synth::FFTThreshold:


Public Member Functions | |
| FFTThreshold () | |
| default constructor | |
| FFTThreshold (const String &pName) | |
| name constructor | |
| FFTThreshold (unsigned int pOverlap) | |
| parameter based contructor | |
| FFTThreshold (const String &pName, unsigned int pOverlap) | |
| parameter based contructor | |
| FFTThreshold (unsigned int pChannelCount, unsigned int pOverlap) | |
| parameter based contructor | |
| FFTThreshold (const String &pName, unsigned int pChannelCount, unsigned int pOverlap) | |
| parameter based contructor | |
| FFTThreshold (unsigned int pOverlap, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) | |
| name and parameter based constructor | |
| FFTThreshold (const base::String &pName, unsigned int pOverlap, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) | |
| name and parameter based constructor | |
| FFTThreshold (const FFTThreshold &pUnit) | |
| copy constructor | |
| FFTThreshold (const String &pName, const FFTThreshold &pUnit) | |
| name & copy constructor | |
| FFTThreshold (const data::Values &pValues) throw (SynthException) | |
| values based constructor | |
| ~FFTThreshold () | |
| destructor | |
| virtual void | process (Buffer *pBuffer=NULL) throw (SynthException) |
| processes buffer | |
| void | setRelative (bool pRelative) |
| set relative threshold | |
| virtual String | info (bool pPropagate=false, bool pShowPorts=true) const |
| obtain textual unit information | |
Static Public Attributes | |
| static const String | sClassName |
| default name | |
Protected Member Functions | |
| void | init () |
| initializes switch ports | |
Protected Attributes | |
| ControlPort * | mThreshold |
| threshold control port | |
| unsigned int | mOverlap |
| number of overlaps | |
| bool | mRelative |
| relative thresholding flag | |
Static Protected Attributes | |
| static unsigned int | sUnitCount |
| total number of units created so far | |
Friends | |
| std::ostream & | operator<< (std::ostream &pOstream, const FFTThreshold &pUnit) |
| print unit information | |
| FFTThreshold::FFTThreshold | ( | ) |
default constructor
| FFTThreshold::FFTThreshold | ( | const String & | pName | ) |
name constructor
| pName | unit name |
| FFTThreshold::FFTThreshold | ( | unsigned int | pOverlap | ) |
parameter based contructor
| pOverlap | number of overlaps |
| FFTThreshold::FFTThreshold | ( | const String & | pName, | |
| unsigned int | pOverlap | |||
| ) |
parameter based contructor
| pName | unit name | |
| pOverlap | number of overlaps |
| FFTThreshold::FFTThreshold | ( | unsigned int | pChannelCount, | |
| unsigned int | pOverlap | |||
| ) |
parameter based contructor
| pChannelCount | number of channels | |
| pOverlap | number of overlaps |
| FFTThreshold::FFTThreshold | ( | const String & | pName, | |
| unsigned int | pChannelCount, | |||
| unsigned int | pOverlap | |||
| ) |
parameter based contructor
| pName | unit name | |
| pChannelCount | number of channels | |
| pOverlap | number of overlaps |
| FFTThreshold::FFTThreshold | ( | unsigned int | pOverlap, | |
| unsigned int | pFrameCount, | |||
| unsigned int | pChannelCount, | |||
| unsigned int | pRate, | |||
| FanInType | pFanInType = FANIN_ADD | |||
| ) |
name and parameter based constructor
| pOverlap | number of overlaps | |
| pFrameCount | number of frames | |
| pChannelCount | number of channels | |
| pRate | samping rate | |
| pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
| FFTThreshold::FFTThreshold | ( | const base::String & | pName, | |
| unsigned int | pOverlap, | |||
| unsigned int | pFrameCount, | |||
| unsigned int | pChannelCount, | |||
| unsigned int | pRate, | |||
| FanInType | pFanInType = FANIN_ADD | |||
| ) |
name and parameter based constructor
| pName | unit name | |
| pOverlap | number of overlaps | |
| pFrameCount | number of frames | |
| pChannelCount | number of channels | |
| pRate | samping rate | |
| pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
| FFTThreshold::FFTThreshold | ( | const FFTThreshold & | pUnit | ) |
copy constructor
| pUnit | unit to copy properties from |
| FFTThreshold::FFTThreshold | ( | const String & | pName, | |
| const FFTThreshold & | pUnit | |||
| ) |
name & copy constructor
| pName | unit name | |
| pUnit | unit to copy properties from |
| FFTThreshold::FFTThreshold | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
| pValues | unit values |
| SynthException | failed to create unit |
| FFTThreshold::~FFTThreshold | ( | ) |
destructor
| void FFTThreshold::process | ( | Buffer * | pBuffer = NULL |
) | throw (SynthException) [virtual] |
| void FFTThreshold::setRelative | ( | bool | pRelative | ) |
set relative threshold
| pRelative | ( true: absolute frequency amplitudes are thresholded, false: normalized freqency amplitudes are thresholded ) |
| base::String FFTThreshold::info | ( | bool | pPropagate = false, |
|
| bool | pShowPorts = true | |||
| ) | const [virtual] |
obtain textual unit information
| pPropagate | if true, the unit calls the info methods of its input ports | |
| pShowPorts | print port information |
Reimplemented from iso::synth::ProcessUnit.
| void FFTThreshold::init | ( | ) | [protected] |
initializes switch ports
| std::ostream& operator<< | ( | std::ostream & | pOstream, | |
| const FFTThreshold & | pUnit | |||
| ) | [friend] |
print unit information
const base::String FFTThreshold::sClassName [static] |
unsigned int FFTThreshold::sUnitCount [static, protected] |
ControlPort* iso::synth::FFTThreshold::mThreshold [protected] |
threshold control port
unsigned int iso::synth::FFTThreshold::mOverlap [protected] |
number of overlaps
bool iso::synth::FFTThreshold::mRelative [protected] |
relative thresholding flag
false: absolute frequency amplitudes are thresholded true: normalized frequency amplitudes are thresholded
1.5.1