#include <iso_synth_noise_pink.h>
Inherits iso::synth::InputUnit.
Inheritance diagram for iso::synth::PinkNoise:
Public Member Functions | |
PinkNoise () | |
default constructor | |
PinkNoise (const String &pName) | |
parameter based contructor | |
PinkNoise (unsigned int pChannelCount) | |
parameter based contructor | |
PinkNoise (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
PinkNoise (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
PinkNoise (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
PinkNoise (const PinkNoise &pUnit) | |
copy constructor | |
PinkNoise (const String &pName, const PinkNoise &pUnit) | |
name & copy constructor | |
PinkNoise (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
~PinkNoise () | |
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 | |
Protected Member Functions | |
void | init () |
initializes wavetable and control ports | |
Protected Attributes | |
ControlPort * | mAmplitude |
amplitude control port | |
ControlPort * | mOffset |
amplitude control port | |
float * | mRand |
unsigned int | mLog2FrameCount |
log2 of frameCount; | |
sample | mRangeInv |
inverted range (used for random number generator) | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const PinkNoise &pUnit) |
print unit information |
PinkNoise::PinkNoise | ( | ) |
default constructor
PinkNoise::PinkNoise | ( | const String & | pName | ) |
parameter based contructor
pName | unit name |
PinkNoise::PinkNoise | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
PinkNoise::PinkNoise | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
PinkNoise::PinkNoise | ( | 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 |
PinkNoise::PinkNoise | ( | 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 |
PinkNoise::PinkNoise | ( | const PinkNoise & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
PinkNoise::PinkNoise | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
PinkNoise::~PinkNoise | ( | ) |
destructor
void PinkNoise::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
String PinkNoise::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 PinkNoise::init | ( | ) | [protected] |
initializes wavetable and control ports
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const PinkNoise & | pUnit | |||
) | [friend] |
print unit information
const String PinkNoise::sClassName [static] |
unsigned int PinkNoise::sUnitCount [static, protected] |
ControlPort* iso::synth::PinkNoise::mAmplitude [protected] |
amplitude control port
ControlPort* iso::synth::PinkNoise::mOffset [protected] |
amplitude control port
float* iso::synth::PinkNoise::mRand [protected] |
unsigned int iso::synth::PinkNoise::mLog2FrameCount [protected] |
log2 of frameCount;
sample iso::synth::PinkNoise::mRangeInv [protected] |
inverted range (used for random number generator)