#include <iso_synth_process_unit.h>
Inherits iso::synth::Unit.
Inherited by iso::synth::AbsUnit, iso::synth::AEPUnit, iso::synth::BinaryOpUnit, iso::synth::DCBlocker, iso::synth::Decoder, iso::synth::DelayUnit, iso::synth::DeltaUnit, iso::synth::Encoder, iso::synth::EnvelopeFollowerUnit, iso::synth::EnvFollower, iso::synth::FFTAmpDerivative, iso::synth::FFTAmpScale, iso::synth::FFTPhaseMultiply, iso::synth::FFTPhaseScale, iso::synth::FFTStretch, iso::synth::FFTThreshold, iso::synth::FFTUnit, iso::synth::Filter, iso::synth::GranularUnit, iso::synth::IFFTUnit, iso::synth::LimiterUnit, iso::synth::LPIIRFilter, iso::synth::MixUnit, iso::synth::MultiAEPUnit, iso::synth::MultiDelayUnit, iso::synth::PointEnvelope, iso::synth::PulseToValueUnit, iso::synth::StringNL, iso::synth::VocalFormantFilter, iso::synth::WaveTableEnvelope, and iso::synth::WaveTableShaper.
Inheritance diagram for iso::synth::ProcessUnit:
Public Member Functions | |
ProcessUnit () | |
default constructor | |
ProcessUnit (const String &pName, FanInType pFanInType=FANIN_ADD) | |
name constructor | |
ProcessUnit (unsigned int pChannelCount, FanInType pFanInType=FANIN_ADD) | |
parameter based contructor | |
ProcessUnit (const String &pName, unsigned int pChannelCount, FanInType pFanInType=FANIN_ADD) | |
parameter based contructor | |
ProcessUnit (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) throw (SynthException) | |
parameter based contructor | |
ProcessUnit (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, FanInType pFanInType=FANIN_ADD) throw (SynthException) | |
name and parameter based contructor | |
ProcessUnit (const Unit &pUnit) | |
copy constructor | |
ProcessUnit (const String &pName, const Unit &pUnit) | |
name & copy constructor | |
ProcessUnit (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
virtual | ~ProcessUnit () |
destructor | |
virtual void | process (Buffer *pBuffer) throw (SynthException) |
processes buffer | |
virtual String | info (bool pPropagate=false, bool pShowPorts=true) const |
obtain textual unit information | |
Static Public Attributes | |
static const String | sClassName |
default name | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const ProcessUnit &pUnit) |
print unit information |
for all units that possess an input and output port
This class expands the base unit class in that it possesses an output audio port and an input audio port.
This class is the base class for all units that process audio data.
Instances of this class form an intermediate step of the process function call chain.
The process function of the base class simply passes audio data unmodified from input audio port to output audio port.
SwitchPorts:
name: active channelCount: 1 resizable: false function: setActive
Created by Daniel Bisig on 6/26/06.
Copyright 2006 Daniel Bisig All rights reserved.
ProcessUnit::ProcessUnit | ( | ) |
default constructor
name constructor
pName | unit name | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
ProcessUnit::ProcessUnit | ( | unsigned int | pChannelCount, | |
FanInType | pFanInType = FANIN_ADD | |||
) |
parameter based contructor
pChannelCount | number of channels | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
ProcessUnit::ProcessUnit | ( | const String & | pName, | |
unsigned int | pChannelCount, | |||
FanInType | pFanInType = FANIN_ADD | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels | |
pFanInType | strategy for combining audio buffers in case this unit is connected to several units |
ProcessUnit::ProcessUnit | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount, | |||
unsigned int | pRate, | |||
FanInType | pFanInType = FANIN_ADD | |||
) | throw (SynthException) |
parameter based contructor
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 |
ProcessUnit::ProcessUnit | ( | const String & | pName, | |
unsigned int | pFrameCount, | |||
unsigned int | pChannelCount, | |||
unsigned int | pRate, | |||
FanInType | pFanInType = FANIN_ADD | |||
) | throw (SynthException) |
name and parameter based contructor
pName | unit name | |
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 |
ProcessUnit::ProcessUnit | ( | const Unit & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
ProcessUnit::ProcessUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
ProcessUnit::~ProcessUnit | ( | ) | [virtual] |
destructor
void ProcessUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::AbsUnit, iso::synth::DeltaUnit, iso::synth::PointEnvelope, iso::synth::WaveTableEnvelope, iso::synth::StringNL, iso::synth::AEPUnit, iso::synth::Decoder, iso::synth::Encoder, iso::synth::MultiAEPUnit, iso::synth::DelayUnit, iso::synth::MultiDelayUnit, iso::synth::WaveTableShaper, iso::synth::FFTAmpDerivative, iso::synth::FFTAmpScale, iso::synth::FFTPhaseMultiply, iso::synth::FFTPhaseScale, iso::synth::FFTStretch, iso::synth::FFTThreshold, iso::synth::FFTUnit, iso::synth::IFFTUnit, iso::synth::AllPassFilter, iso::synth::BWFilter, iso::synth::CombFilter, iso::synth::Filter, iso::synth::FSMFilter, iso::synth::LPIIRFilter, iso::synth::ResonFilter, iso::synth::VocalFormantFilter, iso::synth::GranularUnit, iso::synth::AddUnit, iso::synth::BinaryOpUnit, iso::synth::DCBlocker, iso::synth::EnvFollower, iso::synth::LimiterUnit, iso::synth::MultiplyUnit, iso::synth::EnvelopeFollowerUnit, iso::synth::MixUnit, and iso::synth::PulseToValueUnit.
String ProcessUnit::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::Unit.
Reimplemented in iso::synth::PointEnvelope, iso::synth::WaveTableEnvelope, iso::synth::StringNL, iso::synth::AEPUnit, iso::synth::Decoder, iso::synth::Encoder, iso::synth::MultiAEPUnit, iso::synth::DelayUnit, iso::synth::MultiDelayUnit, iso::synth::WaveTableShaper, iso::synth::FFTAmpDerivative, iso::synth::FFTAmpScale, iso::synth::FFTPhaseMultiply, iso::synth::FFTPhaseScale, iso::synth::FFTStretch, iso::synth::FFTThreshold, iso::synth::FFTUnit, iso::synth::IFFTUnit, iso::synth::AllPassFilter, iso::synth::BWFilter, iso::synth::CombFilter, iso::synth::Filter, iso::synth::FSMFilter, iso::synth::LPIIRFilter, iso::synth::ResonFilter, iso::synth::VocalFormantFilter, iso::synth::GranularUnit, iso::synth::AddUnit, iso::synth::DCBlocker, iso::synth::EnvFollower, iso::synth::LimiterUnit, iso::synth::MultiplyUnit, iso::synth::EnvelopeFollowerUnit, and iso::synth::PulseToValueUnit.
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const ProcessUnit & | pUnit | |||
) | [friend] |
print unit information
const String ProcessUnit::sClassName [static] |
default name
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::AbsUnit, iso::synth::DeltaUnit, iso::synth::PointEnvelope, iso::synth::WaveTableEnvelope, iso::synth::StringNL, iso::synth::AEPUnit, iso::synth::Decoder, iso::synth::Encoder, iso::synth::MultiAEPUnit, iso::synth::DelayUnit, iso::synth::MultiDelayUnit, iso::synth::WaveTableShaper, iso::synth::FFTAmpDerivative, iso::synth::FFTAmpScale, iso::synth::FFTPhaseMultiply, iso::synth::FFTPhaseScale, iso::synth::FFTStretch, iso::synth::FFTThreshold, iso::synth::FFTUnit, iso::synth::IFFTUnit, iso::synth::AllPassFilter, iso::synth::BWFilter, iso::synth::CombFilter, iso::synth::Filter, iso::synth::FSMFilter, iso::synth::LPIIRFilter, iso::synth::ResonFilter, iso::synth::VocalFormantFilter, iso::synth::GranularUnit, iso::synth::AddUnit, iso::synth::BinaryOpUnit, iso::synth::DCBlocker, iso::synth::EnvFollower, iso::synth::LimiterUnit, iso::synth::MultiplyUnit, iso::synth::EnvelopeFollowerUnit, and iso::synth::PulseToValueUnit.
unsigned int ProcessUnit::sUnitCount [static, protected] |
total number of units created so far
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::AbsUnit, iso::synth::DeltaUnit, iso::synth::PointEnvelope, iso::synth::WaveTableEnvelope, iso::synth::StringNL, iso::synth::AEPUnit, iso::synth::Decoder, iso::synth::Encoder, iso::synth::MultiAEPUnit, iso::synth::DelayUnit, iso::synth::MultiDelayUnit, iso::synth::WaveTableShaper, iso::synth::FFTAmpDerivative, iso::synth::FFTAmpScale, iso::synth::FFTPhaseMultiply, iso::synth::FFTPhaseScale, iso::synth::FFTStretch, iso::synth::FFTThreshold, iso::synth::FFTUnit, iso::synth::IFFTUnit, iso::synth::AllPassFilter, iso::synth::BWFilter, iso::synth::CombFilter, iso::synth::Filter, iso::synth::FSMFilter, iso::synth::LPIIRFilter, iso::synth::ResonFilter, iso::synth::VocalFormantFilter, iso::synth::GranularUnit, iso::synth::AddUnit, iso::synth::DCBlocker, iso::synth::MultiplyUnit, iso::synth::EnvelopeFollowerUnit, and iso::synth::PulseToValueUnit.