Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Envelope Class Reference

Envelope class. More...

#include <envelope.h>

List of all members.

Public Member Functions

 Envelope ()
 C'tor.

virtual ~Envelope ()
 D'tor.

void enveEmuInit (udword updateFreq, bool measuredValues)
void enveEmuResetOperator (struct sidOperator *pVoice)
 Reset operator.

const ptr2sidUwordFuncgetEnveModeTable () const
uword enveEmuStartAttack (struct sidOperator *) const
uword enveEmuStartDecay (struct sidOperator *) const
uword enveEmuStartRelease (struct sidOperator *) const
uword enveEmuAlterAttack (struct sidOperator *) const
uword enveEmuAlterDecay (struct sidOperator *) const
uword enveEmuAlterSustain (struct sidOperator *) const
uword enveEmuAlterSustainDecay (struct sidOperator *) const
uword enveEmuAlterRelease (struct sidOperator *) const
uword enveEmuAttack (struct sidOperator *) const
uword enveEmuDecay (struct sidOperator *) const
uword enveEmuSustain (struct sidOperator *) const
uword enveEmuSustainDecay (struct sidOperator *) const
uword enveEmuRelease (struct sidOperator *) const
uword enveEmuMute (struct sidOperator *) const
uword enveEmuStartShortAttack (struct sidOperator *) const
uword enveEmuAlterShortAttack (struct sidOperator *) const
uword enveEmuShortAttack (struct sidOperator *) const

Public Attributes

ubyte masterVolume
uword masterVolumeAmplIndex

Private Attributes

friend sidEmu
uword masterAmplModTable [16 *256]
udword attackRates [16]
udword attackRatesP [16]
udword decayReleaseRates [16]
udword decayReleaseRatesP [16]
udword attackTabLen
udword attackPos [256]
udword releaseTabLen
udword releasePos [256]

Static Private Attributes

const ptr2sidUwordFunc enveModeTable [32]


Detailed Description

Envelope class.

Definition at line 35 of file envelope.h.


Constructor & Destructor Documentation

Envelope::Envelope  ) 
 

C'tor.

Definition at line 98 of file envelope.cpp.

References CTOR.

Envelope::~Envelope  )  [virtual]
 

D'tor.

Definition at line 106 of file envelope.cpp.

References DTOR.


Member Function Documentation

uword Envelope::enveEmuAlterAttack struct sidOperator  )  const [inline]
 

Definition at line 543 of file envelope.cpp.

References sidOperator::ADSRproc, attackRates, attackRatesP, enveEmuAttack(), sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::SIDAD, ubyte, and uword.

Referenced by enveEmuStartAttack().

uword Envelope::enveEmuAlterDecay struct sidOperator  )  const [inline]
 

Definition at line 476 of file envelope.cpp.

References sidOperator::ADSRproc, decayReleaseRates, decayReleaseRatesP, enveEmuDecay(), sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::SIDAD, ubyte, and uword.

Referenced by enveEmuStartDecay().

uword Envelope::enveEmuAlterRelease struct sidOperator  )  const [inline]
 

Definition at line 345 of file envelope.cpp.

References sidOperator::ADSRproc, decayReleaseRates, decayReleaseRatesP, enveEmuRelease(), sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::SIDSR, ubyte, and uword.

Referenced by enveEmuStartRelease().

uword Envelope::enveEmuAlterShortAttack struct sidOperator  )  const [inline]
 

Definition at line 631 of file envelope.cpp.

References sidOperator::ADSRproc, attackRates, attackRatesP, enveEmuShortAttack(), sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::SIDAD, ubyte, and uword.

Referenced by enveEmuStartShortAttack().

uword Envelope::enveEmuAlterSustain struct sidOperator  )  const [inline]
 

Definition at line 421 of file envelope.cpp.

References sidOperator::ADSRctrl, sidOperator::ADSRproc, enveEmuAlterSustainDecay(), enveEmuSustain(), enveEmuSustainDecay(), sidOperator::enveSusVol, sidOperator::enveVol, and uword.

Referenced by enveEmuDecay(), and enveEmuSustainDecay().

uword Envelope::enveEmuAlterSustainDecay struct sidOperator  )  const [inline]
 

Definition at line 329 of file envelope.cpp.

References sidOperator::ADSRproc, decayReleaseRates, decayReleaseRatesP, enveEmuSustainDecay(), sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::SIDAD, ubyte, and uword.

Referenced by enveEmuAlterSustain().

uword Envelope::enveEmuAttack struct sidOperator  )  const [inline]
 

Definition at line 508 of file envelope.cpp.

References attackTabLen, enveEmuEnveAdvance(), enveEmuStartDecay(), sidOperator::enveStep, sidOperator::enveVol, HI, masterAmplModTable, masterVolumeAmplIndex, ubyte, and uword.

Referenced by enveEmuAlterAttack().

uword Envelope::enveEmuDecay struct sidOperator  )  const [inline]
 

Definition at line 441 of file envelope.cpp.

References enveEmuAlterSustain(), enveEmuEnveAdvance(), sidOperator::enveStep, sidOperator::enveSusVol, sidOperator::enveVol, HI, masterAmplModTable, masterVolumeAmplIndex, releaseTabLen, and uword.

Referenced by enveEmuAlterDecay().

void Envelope::enveEmuInit udword  updateFreq,
bool  measuredValues
 

Definition at line 114 of file envelope.cpp.

References attackPos, attackRates, attackRatesP, attackTabLen, attackTimes, decayReleaseRates, decayReleaseRatesP, decayReleaseTimes, masterAmplModTable, masterVolumeLevels, releasePos, releaseTabLen, sdword, sword, udword, and uword.

Referenced by sidEmu::sidEmuConfigure().

uword Envelope::enveEmuMute struct sidOperator  )  const [inline]
 

Definition at line 292 of file envelope.cpp.

References uword.

uword Envelope::enveEmuRelease struct sidOperator  )  const [inline]
 

Definition at line 301 of file envelope.cpp.

References enveEmuEnveAdvance(), sidOperator::enveStep, sidOperator::enveVol, HI, masterAmplModTable, masterVolumeAmplIndex, releaseTabLen, and uword.

Referenced by enveEmuAlterRelease().

void Envelope::enveEmuResetOperator struct sidOperator pVoice  ) 
 

Reset operator.

Definition at line 210 of file envelope.cpp.

References sidOperator::ADSRctrl, sidOperator::enveShortAttackCount, sidOperator::enveStep, sidOperator::enveStepAdd, sidOperator::enveStepAddPnt, sidOperator::enveStepPnt, sidOperator::enveSusVol, sidOperator::enveVol, sidOperator::gateOffCtrl, and sidOperator::gateOnCtrl.

Referenced by sidEmu::sidEmuReset().

uword Envelope::enveEmuShortAttack struct sidOperator  )  const [inline]
 

Definition at line 592 of file envelope.cpp.

References attackTabLen, enveEmuEnveAdvance(), enveEmuStartDecay(), sidOperator::enveShortAttackCount, sidOperator::enveStep, sidOperator::enveVol, HI, masterAmplModTable, masterVolumeAmplIndex, ubyte, and uword.

Referenced by enveEmuAlterShortAttack().

uword Envelope::enveEmuStartAttack struct sidOperator  )  const [inline]
 

Definition at line 558 of file envelope.cpp.

References sidOperator::ADSRctrl, attackPos, enveEmuAlterAttack(), sidOperator::enveStep, sidOperator::enveStepPnt, sidOperator::enveVol, HI, LO, and uword.

uword Envelope::enveEmuStartDecay struct sidOperator  )  const [inline]
 

Definition at line 491 of file envelope.cpp.

References sidOperator::ADSRctrl, enveEmuAlterDecay(), sidOperator::enveStep, sidOperator::enveStepPnt, and uword.

Referenced by enveEmuAttack(), and enveEmuShortAttack().

uword Envelope::enveEmuStartRelease struct sidOperator  )  const [inline]
 

Definition at line 360 of file envelope.cpp.

References sidOperator::ADSRctrl, enveEmuAlterRelease(), sidOperator::enveStep, sidOperator::enveStepPnt, sidOperator::enveVol, HI, LO, releasePos, and uword.

uword Envelope::enveEmuStartShortAttack struct sidOperator  )  const [inline]
 

Definition at line 646 of file envelope.cpp.

References sidOperator::ADSRctrl, attackPos, enveEmuAlterShortAttack(), sidOperator::enveShortAttackCount, sidOperator::enveStep, sidOperator::enveStepPnt, sidOperator::enveVol, HI, LO, and uword.

uword Envelope::enveEmuSustain struct sidOperator  )  const [inline]
 

Definition at line 379 of file envelope.cpp.

References sidOperator::enveVol, masterAmplModTable, masterVolumeAmplIndex, and uword.

Referenced by enveEmuAlterSustain().

uword Envelope::enveEmuSustainDecay struct sidOperator  )  const [inline]
 

Definition at line 384 of file envelope.cpp.

References enveEmuAlterSustain(), enveEmuEnveAdvance(), sidOperator::enveStep, sidOperator::enveSusVol, sidOperator::enveVol, HI, masterAmplModTable, masterVolumeAmplIndex, releaseTabLen, and uword.

Referenced by enveEmuAlterSustain(), and enveEmuAlterSustainDecay().

const ptr2sidUwordFunc * Envelope::getEnveModeTable  )  const
 

Definition at line 234 of file envelope.cpp.

References enveModeTable, and ptr2sidUwordFunc.

Referenced by sidEmu::sidEmuSet().


Member Data Documentation

udword Envelope::attackPos[256] [private]
 

Definition at line 92 of file envelope.h.

Referenced by enveEmuInit(), enveEmuStartAttack(), and enveEmuStartShortAttack().

udword Envelope::attackRates[16] [private]
 

Definition at line 83 of file envelope.h.

Referenced by enveEmuAlterAttack(), enveEmuAlterShortAttack(), and enveEmuInit().

udword Envelope::attackRatesP[16] [private]
 

Definition at line 84 of file envelope.h.

Referenced by enveEmuAlterAttack(), enveEmuAlterShortAttack(), and enveEmuInit().

udword Envelope::attackTabLen [private]
 

Definition at line 91 of file envelope.h.

Referenced by enveEmuAttack(), enveEmuInit(), and enveEmuShortAttack().

udword Envelope::decayReleaseRates[16] [private]
 

Definition at line 85 of file envelope.h.

Referenced by enveEmuAlterDecay(), enveEmuAlterRelease(), enveEmuAlterSustainDecay(), and enveEmuInit().

udword Envelope::decayReleaseRatesP[16] [private]
 

Definition at line 86 of file envelope.h.

Referenced by enveEmuAlterDecay(), enveEmuAlterRelease(), enveEmuAlterSustainDecay(), and enveEmuInit().

const ptr2sidUwordFunc Envelope::enveModeTable [static, private]
 

Initial value:

Definition at line 242 of file envelope.cpp.

Referenced by getEnveModeTable().

uword Envelope::masterAmplModTable[16*256] [private]
 

Definition at line 74 of file envelope.h.

Referenced by enveEmuAttack(), enveEmuDecay(), enveEmuInit(), enveEmuRelease(), enveEmuShortAttack(), enveEmuSustain(), and enveEmuSustainDecay().

ubyte Envelope::masterVolume
 

Definition at line 71 of file envelope.h.

Referenced by sidEmu::sidEmuFillBuffer().

uword Envelope::masterVolumeAmplIndex
 

Definition at line 72 of file envelope.h.

Referenced by enveEmuAttack(), enveEmuDecay(), enveEmuRelease(), enveEmuShortAttack(), enveEmuSustain(), enveEmuSustainDecay(), and sidEmu::sidEmuFillBuffer().

udword Envelope::releasePos[256] [private]
 

Definition at line 96 of file envelope.h.

Referenced by enveEmuInit(), and enveEmuStartRelease().

udword Envelope::releaseTabLen [private]
 

Definition at line 95 of file envelope.h.

Referenced by enveEmuDecay(), enveEmuInit(), enveEmuRelease(), and enveEmuSustainDecay().

friend Envelope::sidEmu [private]
 

Definition at line 40 of file envelope.h.


The documentation for this class was generated from the following files:
Generated on Tue Feb 8 04:33:28 2005 for Esidplay by doxygen 1.3.3