iso::synth::ProcessUnit Class Reference

units base class for all units that possess an input and output port More...

#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:

Inheritance graph
[legend]
Collaboration diagram for iso::synth::ProcessUnit:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

units base class for all units that possess an input and output port

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.


Constructor & Destructor Documentation

ProcessUnit::ProcessUnit (  ) 

default constructor

ProcessUnit::ProcessUnit ( const String pName,
FanInType  pFanInType = FANIN_ADD 
)

name constructor

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
pUnit unit to copy properties from
constructor copies frameCount, channelCount and rate but not unit name

ProcessUnit::ProcessUnit ( const String pName,
const Unit pUnit 
)

name & copy constructor

Parameters:
pName unit name
pUnit unit to copy properties from
constructor copies frameCount, channelCount and rate but not unit name

ProcessUnit::ProcessUnit ( const data::Values &  pValues  )  throw (SynthException)

values based constructor

Parameters:
pValues unit values
Exceptions:
SynthException failed to create unit
pValues structure & data types: 0: const String& : unit name 1: unsigned int : number of frames 2: unsigned int : number of channels 3: unsigned int : samping rate 4: FanInType (optional) : strategy for combining audio buffers in case this unit is connected to several units

ProcessUnit::~ProcessUnit (  )  [virtual]

destructor


Member Function Documentation

void ProcessUnit::process ( Buffer pBuffer  )  throw (SynthException) [virtual]

processes buffer

Parameters:
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

Parameters:
pPropagate if true, the unit calls the info methods of its input ports
pShowPorts print port information
Returns:
String containing unit 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.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const ProcessUnit pUnit 
) [friend]

print unit information


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:18:43 2011 for synth by  doxygen 1.5.1