/[svn]/linuxsampler/trunk/src/engines/gig/Voice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Voice.cpp

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

revision 2837 by persson, Sun Aug 23 06:14:00 2015 UTC revision 2879 by schoenebeck, Tue Apr 19 14:07:53 2016 UTC
# Line 373  namespace LinuxSampler { namespace gig { Line 373  namespace LinuxSampler { namespace gig {
373      float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) {      float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) {
374          float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity);          float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity);
375          if (pRegion->VCFKeyboardTracking) {          if (pRegion->VCFKeyboardTracking) {
376              cutoff *= RTMath::CentsToFreqRatioUnlimited((MIDIKey - pRegion->VCFKeyboardTrackingBreakpoint) * 100);              cutoff *= RTMath::CentsToFreqRatioUnlimited((MIDIKey() - pRegion->VCFKeyboardTrackingBreakpoint) * 100);
377          }          }
378          return cutoff;          return cutoff;
379      }      }
# Line 498  namespace LinuxSampler { namespace gig { Line 498  namespace LinuxSampler { namespace gig {
498          // note should be stopped at all, because it doesn't sound naturally          // note should be stopped at all, because it doesn't sound naturally
499          // with a drumkit.          // with a drumkit.
500          // -- Christian, 2013-01-08          // -- Christian, 2013-01-08
501          if (itEvent->Param.Note.Key != MIDIKey /*||          if (itEvent->Param.Note.Key != HostKey() /*||
502              !GetGigEngineChannel()->SustainPedal*/) {              !GetGigEngineChannel()->SustainPedal*/) {
503              dmsg(4,("Voice %p - kill", (void*)this));              dmsg(4,("Voice %p - kill", (void*)this));
504    

Legend:
Removed from v.2837  
changed lines
  Added in v.2879

  ViewVC Help
Powered by ViewVC