iso::synth::NoiseH Class Reference

sample holding noise generator More...

#include <iso_synth_noise_h.h>

Inherits iso::synth::InputUnit.

Inheritance diagram for iso::synth::NoiseH:

Inheritance graph
[legend]
Collaboration diagram for iso::synth::NoiseH:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NoiseH ()
 default constructor
 NoiseH (const String &pName)
 parameter based contructor
 NoiseH (unsigned int pChannelCount)
 parameter based contructor
 NoiseH (const String &pName, unsigned int pChannelCount)
 parameter based contructor
 NoiseH (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException)
 parameter based contructor
 NoiseH (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate) throw (SynthException)
 name and parameter based contructor
 NoiseH (const NoiseH &pUnit)
 copy constructor
 NoiseH (const String &pName, const NoiseH &pUnit)
 name & copy constructor
 NoiseH (const data::Values &pValues) throw (SynthException)
 values based constructor
 ~NoiseH ()
 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

ControlPortmAmplitude
 amplitude control port
ControlPortmOffset
 amplitude control port
ControlPortmFrequency
 amplitude control port
Frame mHoldFrame
 noise values on hold
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 NoiseH &pUnit)
 print unit information

Detailed Description

sample holding noise generator

noise generator

sample holding noise generator.
creates new random samples at regular intervals.
During the intervals, the sample don't change.


ControlPorts
name: amplitude defaultValue: 1.0
name: offset defaultValue: 0.0
name: frequency defaultValue: 440.0

SwitchPorts:
name: active channelCount: 1 defaultValue: 1.0 resizable: false function: setActive


Created by Daniel Bisig on 9/03/06.


Constructor & Destructor Documentation

NoiseH::NoiseH (  ) 

default constructor

NoiseH::NoiseH ( const String pName  ) 

parameter based contructor

Parameters:
pName unit name

NoiseH::NoiseH ( unsigned int  pChannelCount  ) 

parameter based contructor

Parameters:
pChannelCount number of channels

NoiseH::NoiseH ( const String pName,
unsigned int  pChannelCount 
)

parameter based contructor

Parameters:
pName unit name
pChannelCount number of channels

NoiseH::NoiseH ( unsigned int  pFrameCount,
unsigned int  pChannelCount,
unsigned int  pRate 
) throw (SynthException)

parameter based contructor

Parameters:
pFrameCount number of frames
pChannelCount number of channels
pRate samping rate

NoiseH::NoiseH ( const String pName,
unsigned int  pFrameCount,
unsigned int  pChannelCount,
unsigned int  pRate 
) throw (SynthException)

name and parameter based contructor

Parameters:
pName unit name
pFrameCount number of frames
pChannelCount number of channels
pRate samping rate

NoiseH::NoiseH ( const NoiseH pUnit  ) 

copy constructor

Parameters:
pUnit unit to copy properties from
constructor copies frameCount, channelCount and rate but not unit name

NoiseH::NoiseH ( const String pName,
const NoiseH pUnit 
)

name & copy constructor

Parameters:
pName unit name
pUnit unit to copy properties from
constructor copies frameCount, channelCount and rate but not unit name

NoiseH::NoiseH ( const data::Values &  pValues  )  throw (SynthException)

values based constructor

Parameters:
pValues unit values
Exceptions:
SynthException failed to create unit
pValues structure & data types: 0: const String& : unit name 1: unsigned int : number of frames 2: unsigned int : number of channels 3: unsigned int : samping rate

NoiseH::~NoiseH (  ) 

destructor


Member Function Documentation

void NoiseH::process ( Buffer pBuffer  )  throw (SynthException) [virtual]

processes buffer

Parameters:
pBuffer buffer to process

Reimplemented from iso::synth::InputUnit.

void NoiseH::processFM ( Buffer pBuffer  )  [virtual]

processes buffer (frame mode)

Parameters:
pBuffer buffer to process

void NoiseH::processBM ( Buffer pBuffer  )  [virtual]

processes buffer (buffer mode)

Parameters:
pBuffer buffer to process

String NoiseH::info ( bool  pPropagate = false,
bool  pShowPorts = true 
) const [virtual]

obtain textual unit information

Parameters:
pPropagate if true, the unit calls the info methods of its input ports
pShowPorts print port information
Returns:
String containing unit information

Reimplemented from iso::synth::InputUnit.

void NoiseH::init (  )  [protected]

initializes wavetable and control ports


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const NoiseH pUnit 
) [friend]

print unit information


Member Data Documentation

const String NoiseH::sClassName [static]

default name

Reimplemented from iso::synth::InputUnit.

unsigned int NoiseH::sUnitCount [static, protected]

total number of units created so far

Reimplemented from iso::synth::InputUnit.

ControlPort* iso::synth::NoiseH::mAmplitude [protected]

amplitude control port

ControlPort* iso::synth::NoiseH::mOffset [protected]

amplitude control port

ControlPort* iso::synth::NoiseH::mFrequency [protected]

amplitude control port

Frame iso::synth::NoiseH::mHoldFrame [protected]

noise values on hold

Frame iso::synth::NoiseH::mHoldCountFrame [protected]

hold counter


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:18:44 2011 for synth by  doxygen 1.5.1