46 |
|
|
47 |
// GetEG1Sustain gets the decrease in level in centibels |
// GetEG1Sustain gets the decrease in level in centibels |
48 |
uint sustain = ::sf2::ToRatio(-1 * pVoice->pRegion->GetEG1Sustain(pVoice->pPresetRegion)) * 1000; // in permille |
uint sustain = ::sf2::ToRatio(-1 * pVoice->pRegion->GetEG1Sustain(pVoice->pPresetRegion)) * 1000; // in permille |
49 |
|
if (pVoice->pNote) |
50 |
|
sustain *= pVoice->pNote->Override.Sustain; |
51 |
|
|
52 |
trigger ( |
trigger ( |
53 |
0, // should be in permille |
0, // should be in permille |
54 |
pVoice->pRegion->GetEG1Attack(pVoice->pPresetRegion), |
pVoice->pRegion->GetEG1Attack(pVoice->pPresetRegion), |