/[svn]/linuxsampler/trunk/src/engines/sf2/SF2SignalUnitRack.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/sf2/SF2SignalUnitRack.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3560 by schoenebeck, Thu Jul 20 12:05:53 2017 UTC revision 3561 by schoenebeck, Fri Aug 23 11:44:00 2019 UTC
# Line 46  namespace LinuxSampler { namespace sf2 { Line 46  namespace LinuxSampler { namespace sf2 {
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

Legend:
Removed from v.3560  
changed lines
  Added in v.3561

  ViewVC Help
Powered by ViewVC