#include <iso_synth_sawtooth_unit.h>
Inherits iso::synth::InputUnit.
Inheritance diagram for iso::synth::SawtoothUnit:
Public Member Functions | |
SawtoothUnit () | |
default contructor | |
SawtoothUnit (const String &pName) | |
parameter based contructor | |
SawtoothUnit (unsigned int pChannelCount) | |
parameter based contructor | |
SawtoothUnit (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
SawtoothUnit (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
SawtoothUnit (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
SawtoothUnit (const SawtoothUnit &pUnit) | |
copy constructor | |
SawtoothUnit (const String &pName, const SawtoothUnit &pUnit) | |
name & copy constructor | |
SawtoothUnit (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
~SawtoothUnit () | |
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 const float | N |
static sample | INVN |
static sample | INVFSN |
n times 2 divided by mrate | |
Protected Member Functions | |
void | init () |
initializes wavetable and control ports | |
Protected Attributes | |
ControlPort * | mFrequency |
frequency control port | |
ControlPort * | mAmplitude |
amplitude control port | |
ControlPort * | mStartPhase |
phase control port | |
ControlPort * | mOffset |
offset control port | |
int * | mPhaseOffsetBuffer |
current phase offsets with regard to start phases | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const SawtoothUnit &pUnit) |
print unit information |
SawtoothUnit::SawtoothUnit | ( | ) |
default contructor
SawtoothUnit::SawtoothUnit | ( | const String & | pName | ) |
parameter based contructor
pName | unit name |
SawtoothUnit::SawtoothUnit | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
SawtoothUnit::SawtoothUnit | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
SawtoothUnit::SawtoothUnit | ( | 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 |
SawtoothUnit::SawtoothUnit | ( | 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 |
SawtoothUnit::SawtoothUnit | ( | const SawtoothUnit & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
SawtoothUnit::SawtoothUnit | ( | const String & | pName, | |
const SawtoothUnit & | pUnit | |||
) |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
SawtoothUnit::SawtoothUnit | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
SawtoothUnit::~SawtoothUnit | ( | ) |
destructor
void SawtoothUnit::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::InputUnit.
base::String SawtoothUnit::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::InputUnit.
void SawtoothUnit::init | ( | ) | [protected] |
initializes wavetable and control ports
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const SawtoothUnit & | pUnit | |||
) | [friend] |
print unit information
const base::String SawtoothUnit::sClassName [static] |
const sample SawtoothUnit::N [static] |
sample SawtoothUnit::INVN [static] |
sample SawtoothUnit::INVFSN [static] |
n times 2 divided by mrate
unsigned int SawtoothUnit::sUnitCount [static, protected] |
ControlPort* iso::synth::SawtoothUnit::mFrequency [protected] |
frequency control port
ControlPort* iso::synth::SawtoothUnit::mAmplitude [protected] |
amplitude control port
ControlPort* iso::synth::SawtoothUnit::mStartPhase [protected] |
phase control port
ControlPort* iso::synth::SawtoothUnit::mOffset [protected] |
offset control port
int* iso::synth::SawtoothUnit::mPhaseOffsetBuffer [protected] |
current phase offsets with regard to start phases