#include <iso_synth_wavetable_shaper.h>
Inherits iso::synth::ProcessUnit.
Inheritance diagram for iso::synth::WaveTableShaper:
Public Member Functions | |
WaveTableShaper (const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) | |
parameter based contructor | |
WaveTableShaper (const String &pName, const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) | |
parameter based contructor | |
WaveTableShaper (unsigned int pChannelCount, const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) | |
parameter based contructor | |
WaveTableShaper (const String &pName, unsigned int pChannelCount, const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) | |
parameter based contructor | |
WaveTableShaper (unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) throw (SynthException) | |
parameter based contructor | |
WaveTableShaper (const String &pName, unsigned int pFrameCount, unsigned int pChannelCount, unsigned int pRate, const String &pWaveTableName, InterpolationType pInterpolationType=TRUNCATEINTERPOL) throw (SynthException) | |
name and parameter based contructor | |
WaveTableShaper (const WaveTableShaper &pUnit) | |
copy constructor | |
WaveTableShaper (const String &pName, const WaveTableShaper &pUnit) | |
name & copy constructor | |
WaveTableShaper (const data::Values &pValues) throw (SynthException) | |
values based constructor | |
~WaveTableShaper () | |
destructor | |
Channel * | waveTable () |
returns wave table | |
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 | |
WaveTableShaper () | |
default constructor | |
void | init () |
initializes wavetable and control ports | |
Protected Attributes | |
ControlPort * | mAmplitude |
amplitude control port | |
ControlPort * | mOffset |
offset control port | |
String | mWaveTableName |
wave table name | |
Channel * | mWaveTable |
wave table buffer | |
InterpolationType | mInterpolationType |
interpolation type | |
Static Protected Attributes | |
static unsigned int | sUnitCount |
total number of units created so far | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const WaveTableShaper &pUnit) |
print unit information |
Created by Daniel Bisig on 7/20/06. Copyright 2006 Daniel Bisig All rights reserved.
WaveTableShaper::WaveTableShaper | ( | const String & | pWaveTableName, | |
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) |
parameter based contructor
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | const String & | pName, | |
const String & | pWaveTableName, | |||
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) |
parameter based contructor
pName | unit name | |
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | unsigned int | pChannelCount, | |
const String & | pWaveTableName, | |||
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) |
parameter based contructor
pChannelCount | number of channels | |
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | const String & | pName, | |
unsigned int | pChannelCount, | |||
const String & | pWaveTableName, | |||
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) |
parameter based contructor
pName | unit name | |
pChannelCount | number of channels | |
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount, | |||
unsigned int | pRate, | |||
const String & | pWaveTableName, | |||
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) | throw (SynthException) |
parameter based contructor
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate | |
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | const String & | pName, | |
unsigned int | pFrameCount, | |||
unsigned int | pChannelCount, | |||
unsigned int | pRate, | |||
const String & | pWaveTableName, | |||
InterpolationType | pInterpolationType = TRUNCATEINTERPOL | |||
) | throw (SynthException) |
name and parameter based contructor
pName | unit name | |
pFrameCount | number of frames | |
pChannelCount | number of channels | |
pRate | samping rate | |
pWaveTableName | name of wavetable or wavetable file | |
pInterpolationType | wavetable interpolation type |
WaveTableShaper::WaveTableShaper | ( | const WaveTableShaper & | pUnit | ) |
copy constructor
pUnit | unit to copy properties from |
WaveTableShaper::WaveTableShaper | ( | const String & | pName, | |
const WaveTableShaper & | pUnit | |||
) |
name & copy constructor
pName | unit name | |
pUnit | unit to copy properties from |
WaveTableShaper::WaveTableShaper | ( | const data::Values & | pValues | ) | throw (SynthException) |
values based constructor
pValues | unit values |
SynthException | failed to create unit |
WaveTableShaper::~WaveTableShaper | ( | ) |
destructor
WaveTableShaper::WaveTableShaper | ( | ) | [protected] |
default constructor
Channel * WaveTableShaper::waveTable | ( | ) |
returns wave table
void WaveTableShaper::process | ( | Buffer * | pBuffer | ) | throw (SynthException) [virtual] |
processes buffer
pBuffer | buffer to process |
Reimplemented from iso::synth::ProcessUnit.
base::String WaveTableShaper::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::ProcessUnit.
void WaveTableShaper::init | ( | ) | [protected] |
initializes wavetable and control ports
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const WaveTableShaper & | pUnit | |||
) | [friend] |
print unit information
const base::String WaveTableShaper::sClassName [static] |
unsigned int WaveTableShaper::sUnitCount [static, protected] |
ControlPort* iso::synth::WaveTableShaper::mAmplitude [protected] |
amplitude control port
ControlPort* iso::synth::WaveTableShaper::mOffset [protected] |
offset control port
String iso::synth::WaveTableShaper::mWaveTableName [protected] |
wave table name
Channel* iso::synth::WaveTableShaper::mWaveTable [protected] |
wave table buffer
interpolation type