/[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 2086 by persson, Sun Apr 25 12:51:30 2010 UTC revision 2115 by persson, Thu Aug 12 15:36:15 2010 UTC
# Line 501  namespace LinuxSampler { namespace sfz { Line 501  namespace LinuxSampler { namespace sfz {
501          return expf(RgnInfo.ReleaseTriggerDecay * noteLength);          return expf(RgnInfo.ReleaseTriggerDecay * noteLength);
502      }      }
503    
504        void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) {
505            dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type));
506            if (itEvent->Type == Event::type_control_change ||
507                (Type & Voice::type_controller_triggered) ||
508                itEvent->Param.Note.Key != MIDIKey) {
509                dmsg(4,("Voice %x - kill", this));
510                if (pRegion->off_mode == ::sfz::OFF_NORMAL) {
511                    // turn off the voice by entering release envelope stage
512                    EnterReleaseStage();
513                } else {
514                    // kill the voice fast
515                    pEG1->enterFadeOutStage();
516                }
517            }
518        }
519    
520  }} // namespace LinuxSampler::sfz  }} // namespace LinuxSampler::sfz

Legend:
Removed from v.2086  
changed lines
  Added in v.2115

  ViewVC Help
Powered by ViewVC