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

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

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

revision 2878 by persson, Sun Aug 23 06:14:00 2015 UTC revision 2879 by schoenebeck, Tue Apr 19 14:07:53 2016 UTC
# Line 264  namespace LinuxSampler { namespace sfz { Line 264  namespace LinuxSampler { namespace sfz {
264          float cutoff = *pRegion->cutoff;          float cutoff = *pRegion->cutoff;
265          cutoff *= RTMath::CentsToFreqRatioUnlimited(          cutoff *= RTMath::CentsToFreqRatioUnlimited(
266              MIDIKeyVelocity / 127.0f * pRegion->fil_veltrack +              MIDIKeyVelocity / 127.0f * pRegion->fil_veltrack +
267              (MIDIKey - pRegion->fil_keycenter) * pRegion->fil_keytrack);              (MIDIKey() - pRegion->fil_keycenter) * pRegion->fil_keytrack);
268          return cutoff;          return cutoff;
269      }      }
270    
# Line 283  namespace LinuxSampler { namespace sfz { Line 283  namespace LinuxSampler { namespace sfz {
283          dmsg(4,("Voice %p processGroupEvents event type=%d", (void*)this, itEvent->Type));          dmsg(4,("Voice %p processGroupEvents event type=%d", (void*)this, itEvent->Type));
284          if (itEvent->Type == Event::type_control_change ||          if (itEvent->Type == Event::type_control_change ||
285              (Type & Voice::type_controller_triggered) ||              (Type & Voice::type_controller_triggered) ||
286              itEvent->Param.Note.Key != MIDIKey) {              itEvent->Param.Note.Key != HostKey()) {
287              dmsg(4,("Voice %p - kill", (void*)this));              dmsg(4,("Voice %p - kill", (void*)this));
288              if (pRegion->off_mode == ::sfz::OFF_NORMAL) {              if (pRegion->off_mode == ::sfz::OFF_NORMAL) {
289                  // turn off the voice by entering release envelope stage                  // turn off the voice by entering release envelope stage

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

  ViewVC Help
Powered by ViewVC