#include <iso_synth_noise_i.h>
Inherits iso::synth::InputUnit.
Inheritance diagram for iso::synth::NoiseI:
Public Member Functions | |
NoiseI () | |
default constructor | |
NoiseI (const String &pName) | |
parameter based contructor | |
NoiseI (unsigned int pChannelCount) | |
parameter based contructor | |
NoiseI (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
NoiseI (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
NoiseI (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
NoiseI (const NoiseI &pUnit) | |
copy constructor | |
NoiseI (const String &pName, const NoiseI &pUnit) | |
name & copy constructor | |
NoiseI (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
~NoiseI () | |
destructor | |
virtual void | process (Buffer *pBuffer) throw (SynthException) |
processes buffer | |
virtual void | processFM (Buffer *pBuffer) |
processes buffer (frame mode) | |
virtual void | processBM (Buffer *pBuffer) |
processes buffer (buffer mode) | |
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 wavetable and control ports | |
Protected Attributes | |
ControlPort * | mAmplitude |
amplitude control port | |
ControlPort * | mOffset |
amplitude control port | |
ControlPort * | mFrequency |
amplitude control port | |
Frame | mOldHoldFrame |
previous noise values on hold | |
Frame | mNewHoldFrame |
new noise values on hold | |
Frame | mInterpolFrame |
value increment for linear interpolation between hold data | |
Frame | mHoldCountFrame |
hold counter | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const NoiseI &pUnit) |
print unit information |
NoiseI::NoiseI | ( | ) |
default constructor
NoiseI::NoiseI | ( | const String & | pName | ) |
parameter based contructor
pName | unit name |
NoiseI::NoiseI | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
NoiseI::NoiseI | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
NoiseI::NoiseI | ( | 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 |
NoiseI::NoiseI | ( | 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 |
NoiseI::NoiseI | ( | const NoiseI & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
NoiseI::NoiseI | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
NoiseI::~NoiseI | ( | ) |
destructor
void NoiseI::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
void NoiseI::processFM | ( | Buffer * | pBuffer | ) | [virtual] |
processes buffer (frame mode)
pBuffer | buffer to process |
void NoiseI::processBM | ( | Buffer * | pBuffer | ) | [virtual] |
processes buffer (buffer mode)
pBuffer | buffer to process |
String NoiseI::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 NoiseI::init | ( | ) | [protected] |
initializes wavetable and control ports
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const NoiseI & | pUnit | |||
) | [friend] |
print unit information
const String NoiseI::sClassName [static] |
unsigned int NoiseI::sUnitCount [static, protected] |
ControlPort* iso::synth::NoiseI::mAmplitude [protected] |
amplitude control port
ControlPort* iso::synth::NoiseI::mOffset [protected] |
amplitude control port
ControlPort* iso::synth::NoiseI::mFrequency [protected] |
amplitude control port
Frame iso::synth::NoiseI::mOldHoldFrame [protected] |
previous noise values on hold
Frame iso::synth::NoiseI::mNewHoldFrame [protected] |
new noise values on hold
Frame iso::synth::NoiseI::mInterpolFrame [protected] |
value increment for linear interpolation between hold data
Frame iso::synth::NoiseI::mHoldCountFrame [protected] |
hold counter