#include <iso_synth_input_unit.h>
Inherits iso::synth::Unit.
Inherited by iso::synth::CTFUnit, iso::synth::ETAUnit, iso::synth::FMUnit, iso::synth::FTCUnit, iso::synth::InputFile, iso::synth::JackInputUnit, iso::synth::Noise, iso::synth::NoiseH, iso::synth::NoiseI, iso::synth::PinkNoise, iso::synth::PulseUnit, iso::synth::RhythmUnit, iso::synth::SampleUnit, iso::synth::SawtoothUnit, iso::synth::StochasticNoise, iso::synth::TriggerSampleUnit, and iso::synth::WaveTableOscil.
Inheritance diagram for iso::synth::InputUnit:
Public Member Functions | |
InputUnit () | |
default constructor | |
InputUnit (const String &pName) | |
name constructor | |
InputUnit (unsigned int pChannelCount) | |
parameter based contructor | |
InputUnit (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
InputUnit (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
InputUnit (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
InputUnit (const Unit &pUnit) | |
copy constructor | |
InputUnit (const String &pName, const Unit &pUnit) | |
name & copy constructor | |
InputUnit (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
virtual | ~InputUnit () |
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 InputUnit &pUnit) |
print unit information |
generation unit
This class expands the base unit class in that it possesses an output audio port.
This class is the base class for all units that generate audio.
Instances of this class form the end of the process function call chain.
The process function of this base class delivers audio data consisting solely of 0.0 values via it's audio output port.
SwitchPorts:
name: active channelCount: 1 defaultValue: 1.0 resizable: false function: setActive
Created by Daniel Bisig on 6/26/06.
Copyright 2006 Daniel Bisig All rights reserved.
InputUnit::InputUnit | ( | ) |
default constructor
InputUnit::InputUnit | ( | const String & | pName | ) |
name constructor
pName | unit name |
InputUnit::InputUnit | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
InputUnit::InputUnit | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
InputUnit::InputUnit | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount, | |||
unsigned int | pRate | |||
) | throw (SynthException) |
parameter based contructor
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate |
InputUnit::InputUnit | ( | const String & | pName, | |
unsigned int | pFrameCount, | |||
unsigned int | pChannelCount, | |||
unsigned int | pRate | |||
) | throw (SynthException) |
name and parameter based contructor
pName | unit name | |
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate |
InputUnit::InputUnit | ( | const Unit & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
InputUnit::InputUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
InputUnit::~InputUnit | ( | ) | [virtual] |
destructor
void InputUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::JackInputUnit, iso::synth::BLPulseGen, iso::synth::DCSPulseGen, iso::synth::FMUnit, iso::synth::Noise, iso::synth::NoiseH, iso::synth::NoiseI, iso::synth::PinkNoise, iso::synth::StochasticNoise, iso::synth::PulseUnit, iso::synth::RhythmUnit, iso::synth::SawtoothUnit, iso::synth::TriggerSampleUnit, iso::synth::WaveTableOscil, iso::synth::InputFile, iso::synth::SampleUnit, iso::synth::CTFUnit, iso::synth::ETACustomFadeUnit, iso::synth::ETAFadeToValueUnit, iso::synth::ETAFadeUnit, iso::synth::ETAUnit, and iso::synth::FTCUnit.
String InputUnit::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::JackInputUnit, iso::synth::BLPulseGen, iso::synth::DCSPulseGen, iso::synth::FMUnit, iso::synth::Noise, iso::synth::NoiseH, iso::synth::NoiseI, iso::synth::PinkNoise, iso::synth::StochasticNoise, iso::synth::PulseUnit, iso::synth::RhythmUnit, iso::synth::SawtoothUnit, iso::synth::TriggerSampleUnit, iso::synth::WaveTableOscil, iso::synth::InputFile, iso::synth::SampleUnit, iso::synth::CTFUnit, iso::synth::ETACustomFadeUnit, iso::synth::ETAFadeToValueUnit, iso::synth::ETAFadeUnit, iso::synth::ETAUnit, and iso::synth::FTCUnit.
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const InputUnit & | pUnit | |||
) | [friend] |
print unit information
const String InputUnit::sClassName [static] |
default name
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::JackInputUnit, iso::synth::BLPulseGen, iso::synth::DCSPulseGen, iso::synth::FMUnit, iso::synth::Noise, iso::synth::NoiseH, iso::synth::NoiseI, iso::synth::PinkNoise, iso::synth::StochasticNoise, iso::synth::PulseUnit, iso::synth::RhythmUnit, iso::synth::SawtoothUnit, iso::synth::TriggerSampleUnit, iso::synth::WaveTableOscil, iso::synth::InputFile, iso::synth::SampleUnit, iso::synth::CTFUnit, iso::synth::ETACustomFadeUnit, iso::synth::ETAFadeToValueUnit, iso::synth::ETAFadeUnit, iso::synth::ETAUnit, and iso::synth::FTCUnit.
unsigned int InputUnit::sUnitCount [static, protected] |
total number of units created so far
Reimplemented from iso::synth::Unit.
Reimplemented in iso::synth::JackInputUnit, iso::synth::BLPulseGen, iso::synth::DCSPulseGen, iso::synth::FMUnit, iso::synth::Noise, iso::synth::NoiseH, iso::synth::NoiseI, iso::synth::PinkNoise, iso::synth::StochasticNoise, iso::synth::PulseUnit, iso::synth::RhythmUnit, iso::synth::SawtoothUnit, iso::synth::TriggerSampleUnit, iso::synth::WaveTableOscil, iso::synth::InputFile, iso::synth::SampleUnit, iso::synth::CTFUnit, iso::synth::ETACustomFadeUnit, iso::synth::ETAFadeToValueUnit, iso::synth::ETAFadeUnit, iso::synth::ETAUnit, and iso::synth::FTCUnit.