iso::synth::ControlFadeStrategy Class Reference

fade strategy for control ports More...

#include <iso_synth_control_fade_strategy.h>

Collaboration diagram for iso::synth::ControlFadeStrategy:

Collaboration graph
[legend]
List of all members.

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 StringfadeTypeName () 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

ControlPortmControlPort
 associated control port
WaveTableEnvelopemWaveTableEnvelope
 wave table envelope for fading
ControlPortmDurationPort
 duration control port of wave table envelope
samplemDuration
 fade duration
String mFadeTypeName
 fade type name
Frame mStartFrame
 start fade frame
Frame mTargetFrame
 target fade frame
Frame mCurrentFrame
 current fade frame

Detailed Description

fade strategy for control ports

for control ports

Created by Daniel Bisig on 7/8/06.


Constructor & Destructor Documentation

ControlFadeStrategy::ControlFadeStrategy ( ControlPort pControlPort,
const String pFadeTypeName,
sample  pDuration,
const Frame pValues 
)

default constructor

Parameters:
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]


Member Function Documentation

sample ControlFadeStrategy::duration (  )  const

returns duration of fade strategy

Returns:
duration of fade strategy

const String & ControlFadeStrategy::fadeTypeName (  )  const

return fade type name

Returns:
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

Parameters:
pTargetFrame target frame that is faded to
Exceptions:
SynthException failed to set target value
employ previously stored fade duration

void ControlFadeStrategy::setValue ( const Frame pTargetFrame,
sample  pDuration 
) throw (SynthException)

new gradual fade

Parameters:
pTargetFrame target frame that is faded to
pDuration duration till target value is reached (in milisecs)
Exceptions:
SynthException failed to set target value

void ControlFadeStrategy::jumpToValue ( const Frame pFrame  )  throw (SynthException)

jump immediately to value without fading

Parameters:
pFrame new value
Exceptions:
SynthException failed to jump to target value

void ControlFadeStrategy::process ( Buffer pBuffer  )  [virtual]

process buffer

Parameters:
pBuffer buffer to operate on

String ControlFadeStrategy::info ( bool  pPropagate = false  )  const [virtual]

obtain textual link conversion strategy information

Parameters:
pPropagate ignored
Returns:
String containing unit information


Member Data Documentation

ControlPort* iso::synth::ControlFadeStrategy::mControlPort [protected]

associated control port

WaveTableEnvelope* iso::synth::ControlFadeStrategy::mWaveTableEnvelope [protected]

wave table envelope for fading

ControlPort* iso::synth::ControlFadeStrategy::mDurationPort [protected]

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


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