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) |
if (pVoice->pNote) { |
50 |
sustain *= pVoice->pNote->Override.Sustain; |
pVoice->pNote->Override.Sustain.applyTo(sustain); |
51 |
|
} |
52 |
|
|
53 |
trigger ( |
trigger ( |
54 |
0, // should be in permille |
0, // should be in permille |