#include <iso_synth_noise.h>
Inherits iso::synth::InputUnit.
Inheritance diagram for iso::synth::Noise:
Public Member Functions | |
Noise () | |
default constructor | |
Noise (const String &pName) | |
parameter based contructor | |
Noise (unsigned int pChannelCount) | |
parameter based contructor | |
Noise (const String &pName, unsigned int pChannelCount) | |
parameter based contructor | |
Noise (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
parameter based contructor | |
Noise (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException) | |
name and parameter based contructor | |
Noise (const Noise &pUnit) | |
copy constructor | |
Noise (const String &pName, const Noise &pUnit) | |
name & copy constructor | |
Noise (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
~Noise () | |
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 | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Noise &pUnit) |
print unit information |
noise generator
simple white noise generator.
ControlPorts
name: amplitude defaultValue: 1.0
name: offset defaultValue: 0.0
SwitchPorts:
name: active channelCount: 1 defaultValue: 1.0 resizable: false function: setActive
Created by Daniel Bisig on 9/03/06.
Noise::Noise | ( | ) |
default constructor
Noise::Noise | ( | const String & | pName | ) |
parameter based contructor
pName | unit name |
Noise::Noise | ( | unsigned int | pChannelCount | ) |
parameter based contructor
pChannelCount | number of channels |
Noise::Noise | ( | const String & | pName, | |
unsigned int | pChannelCount | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels |
Noise::Noise | ( | 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 |
Noise::Noise | ( | 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 |
Noise::Noise | ( | const Noise & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
Noise::Noise | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
Noise::~Noise | ( | ) |
destructor
void Noise::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
String Noise::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 Noise::init | ( | ) | [protected] |
initializes wavetable and control ports
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Noise & | pUnit | |||
) | [friend] |
print unit information
const String Noise::sClassName [static] |
unsigned int Noise::sUnitCount [static, protected] |
ControlPort* iso::synth::Noise::mAmplitude [protected] |
amplitude control port
ControlPort* iso::synth::Noise::mOffset [protected] |
amplitude control port