65 |
EGADSR(gig::Engine* pEngine, Event::destination_t ModulationDestination); |
EGADSR(gig::Engine* pEngine, Event::destination_t ModulationDestination); |
66 |
void Process(uint TotalSamples, RTList<Event>* pEvents, RTList<Event>::Iterator itTriggerEvent, double SamplePos, double CurrentPitch, RTList<Event>::Iterator itKillEvent = RTList<Event>::Iterator()); |
void Process(uint TotalSamples, RTList<Event>* pEvents, RTList<Event>::Iterator itTriggerEvent, double SamplePos, double CurrentPitch, RTList<Event>::Iterator itKillEvent = RTList<Event>::Iterator()); |
67 |
void Trigger(uint PreAttack, double AttackTime, bool HoldAttack, long LoopStart, double Decay1Time, double Decay2Time, bool InfiniteSustain, uint SustainLevel, double ReleaseTime, uint Delay, float Volume); |
void Trigger(uint PreAttack, double AttackTime, bool HoldAttack, long LoopStart, double Decay1Time, double Decay2Time, bool InfiniteSustain, uint SustainLevel, double ReleaseTime, uint Delay, float Volume); |
68 |
|
void CalculateFadeOutCoeff(float FadeOutTime, float SampleRate); |
69 |
inline EGADSR::stage_t GetStage() { return Stage; } |
inline EGADSR::stage_t GetStage() { return Stage; } |
70 |
protected: |
protected: |
71 |
gig::Engine* pEngine; |
gig::Engine* pEngine; |
95 |
long ReleaseStepsLeft; ///< number of sample points til end of release stage |
long ReleaseStepsLeft; ///< number of sample points til end of release stage |
96 |
bool ReleasePostponed; ///< If a "release" event occured in the previous audio fragment, but wasn't processed yet. |
bool ReleasePostponed; ///< If a "release" event occured in the previous audio fragment, but wasn't processed yet. |
97 |
float ExpOffset; |
float ExpOffset; |
98 |
const static float FadeOutCoeff; |
float FadeOutCoeff; ///< very fast ramp down for e.g. voice stealing |
|
private: |
|
|
static float CalculateFadeOutCoeff(); |
|
99 |
}; |
}; |
100 |
|
|
101 |
}} // namespace LinuxSampler::gig |
}} // namespace LinuxSampler::gig |