43 |
* @param PreAttack - Preattack value for the envelope |
* @param PreAttack - Preattack value for the envelope |
44 |
* (0 - 1000 permille) |
* (0 - 1000 permille) |
45 |
* @param AttackTime - Attack time for the envelope |
* @param AttackTime - Attack time for the envelope |
46 |
* @param HoldAttack - TODO |
* @param HoldTime - Hold time for the envelope |
47 |
* @param DecayTime - Decay1 time of the sample amplitude EG |
* @param DecayTime - Decay1 time of the sample amplitude EG |
48 |
* @param SustainLevel - Sustain level of the sample amplitude EG |
* @param SustainLevel - Sustain level of the sample amplitude EG |
49 |
* (0 - 1000 permille) |
* (0 - 1000 permille) |
50 |
* @param ReleaseTIme - Release time for the envelope |
* @param ReleaseTIme - Release time for the envelope |
51 |
* @param SampleRate - sample rate of used audio output driver |
* @param SampleRate - sample rate of used audio output driver |
52 |
*/ |
*/ |
53 |
void trigger(uint PreAttack, float AttackTime, bool HoldAttack, float DecayTime, uint SustainLevel, float ReleaseTime, uint SampleRate); //FIXME: we should better use 'float' for SampleRate |
void trigger(uint PreAttack, float AttackTime, float HoldTime, float DecayTime, uint SustainLevel, float ReleaseTime, uint SampleRate); //FIXME: we should better use 'float' for SampleRate |
54 |
|
|
55 |
/** |
/** |
56 |
* Should be called to inform the EG about an external event and |
* Should be called to inform the EG about an external event and |
75 |
}; |
}; |
76 |
|
|
77 |
stage_t Stage; |
stage_t Stage; |
78 |
bool HoldAttack; |
int HoldSteps; |
79 |
float DecayTime; |
float DecayTime; |
80 |
float SustainLevel; |
float SustainLevel; |
81 |
float ReleaseSlope; |
float ReleaseSlope; |