#include <iso_synth_control_fade_strategy.h>
Collaboration diagram for iso::synth::ControlFadeStrategy:
Public Member Functions | |
ControlFadeStrategy (ControlPort *pControlPort, const String &pFadeTypeName, sample pDuration, const Frame &pValues) | |
default constructor | |
virtual | ~ControlFadeStrategy () |
destructor | |
sample | duration () const |
returns duration of fade strategy | |
const String & | fadeTypeName () const |
return fade type name | |
void | setDuration (sample pDuration) |
set default fade duration (in milisecs) | |
void | setValue (const Frame &pTargetFrame) throw (SynthException) |
new gradual fade | |
void | setValue (const Frame &pTargetFrame, sample pDuration) throw (SynthException) |
new gradual fade | |
void | jumpToValue (const Frame &pFrame) throw (SynthException) |
jump immediately to value without fading | |
virtual void | process (Buffer *pBuffer) |
process buffer | |
virtual String | info (bool pPropagate=false) const |
obtain textual link conversion strategy information | |
Protected Member Functions | |
ControlFadeStrategy () | |
Protected Attributes | |
ControlPort * | mControlPort |
associated control port | |
WaveTableEnvelope * | mWaveTableEnvelope |
wave table envelope for fading | |
ControlPort * | mDurationPort |
duration control port of wave table envelope | |
sample * | mDuration |
fade duration | |
String | mFadeTypeName |
fade type name | |
Frame | mStartFrame |
start fade frame | |
Frame | mTargetFrame |
target fade frame | |
Frame | mCurrentFrame |
current fade frame |
for control ports
Created by Daniel Bisig on 7/8/06.
ControlFadeStrategy::ControlFadeStrategy | ( | ControlPort * | pControlPort, | |
const String & | pFadeTypeName, | |||
sample | pDuration, | |||
const Frame & | pValues | |||
) |
default constructor
pControlPort | associated control port | |
pFadeTypeName | name of wavetable envelope | |
pDuration | fade duration (in milisecs) | |
pValues | initial values of fade strategy |
ControlFadeStrategy::~ControlFadeStrategy | ( | ) | [virtual] |
destructor
ControlFadeStrategy::ControlFadeStrategy | ( | ) | [protected] |
sample ControlFadeStrategy::duration | ( | ) | const |
returns duration of fade strategy
const String & ControlFadeStrategy::fadeTypeName | ( | ) | const |
return fade type name
void ControlFadeStrategy::setDuration | ( | sample | pDuration | ) |
set default fade duration (in milisecs)
void ControlFadeStrategy::setValue | ( | const Frame & | pTargetFrame | ) | throw (SynthException) |
new gradual fade
pTargetFrame | target frame that is faded to |
SynthException | failed to set target value |
void ControlFadeStrategy::setValue | ( | const Frame & | pTargetFrame, | |
sample | pDuration | |||
) | throw (SynthException) |
new gradual fade
pTargetFrame | target frame that is faded to | |
pDuration | duration till target value is reached (in milisecs) |
SynthException | failed to set target value |
void ControlFadeStrategy::jumpToValue | ( | const Frame & | pFrame | ) | throw (SynthException) |
jump immediately to value without fading
pFrame | new value |
SynthException | failed to jump to target value |
void ControlFadeStrategy::process | ( | Buffer * | pBuffer | ) | [virtual] |
process buffer
pBuffer | buffer to operate on |
String ControlFadeStrategy::info | ( | bool | pPropagate = false |
) | const [virtual] |
obtain textual link conversion strategy information
pPropagate | ignored |
ControlPort* iso::synth::ControlFadeStrategy::mControlPort [protected] |
associated control port
wave table envelope for fading
duration control port of wave table envelope
sample* iso::synth::ControlFadeStrategy::mDuration [protected] |
fade duration
pointer to duration frame of duration control port of wave table envelope
String iso::synth::ControlFadeStrategy::mFadeTypeName [protected] |
fade type name
Frame iso::synth::ControlFadeStrategy::mStartFrame [protected] |
start fade frame
Frame iso::synth::ControlFadeStrategy::mTargetFrame [protected] |
target fade frame
Frame iso::synth::ControlFadeStrategy::mCurrentFrame [protected] |
current fade frame