/[svn]/linuxsampler/trunk/src/engines/common/AbstractVoice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/AbstractVoice.cpp

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

revision 3016 by schoenebeck, Tue Oct 18 21:01:46 2016 UTC revision 3017 by schoenebeck, Wed Oct 19 12:28:40 2016 UTC
# Line 644  namespace LinuxSampler { Line 644  namespace LinuxSampler {
644      void AbstractVoice::processCCEvents(RTList<Event>::Iterator& itEvent, uint End) {      void AbstractVoice::processCCEvents(RTList<Event>::Iterator& itEvent, uint End) {
645          for (; itEvent && itEvent->FragmentPos() <= End; ++itEvent) {          for (; itEvent && itEvent->FragmentPos() <= End; ++itEvent) {
646              if ((itEvent->Type == Event::type_control_change || itEvent->Type == Event::type_channel_pressure)              if ((itEvent->Type == Event::type_control_change || itEvent->Type == Event::type_channel_pressure)
647                  && itEvent->Param.CC.Controller) { // if (valid) MIDI control change event                  && itEvent->Param.CC.Controller) // if (valid) MIDI control change event
648                {
649                  if (itEvent->Param.CC.Controller == VCFCutoffCtrl.controller) {                  if (itEvent->Param.CC.Controller == VCFCutoffCtrl.controller) {
650                      ProcessCutoffEvent(itEvent);                      ProcessCutoffEvent(itEvent);
651                  }                  }
652                  if (itEvent->Param.CC.Controller == VCFResonanceCtrl.controller) {                  if (itEvent->Param.CC.Controller == VCFResonanceCtrl.controller) {
653                      processResonanceEvent(itEvent);                      processResonanceEvent(itEvent);
654                  }                  }
655                    if (itEvent->Param.CC.Controller == CTRL_TABLE_IDX_AFTERTOUCH ||
656                        itEvent->Type == Event::type_channel_pressure)
657                    {
658                        ProcessChannelPressureEvent(itEvent);
659                    }
660                  if (pSignalUnitRack == NULL) {                  if (pSignalUnitRack == NULL) {
661                      if (itEvent->Param.CC.Controller == pLFO1->ExtController) {                      if (itEvent->Param.CC.Controller == pLFO1->ExtController) {
662                          pLFO1->update(itEvent->Param.CC.Value);                          pLFO1->update(itEvent->Param.CC.Value);
# Line 669  namespace LinuxSampler { Line 675  namespace LinuxSampler {
675                  }                  }
676              } else if (itEvent->Type == Event::type_pitchbend) { // if pitch bend event              } else if (itEvent->Type == Event::type_pitchbend) { // if pitch bend event
677                  processPitchEvent(itEvent);                  processPitchEvent(itEvent);
             } else if (itEvent->Type == Event::type_channel_pressure) {  
                 ProcessChannelPressureEvent(itEvent);  
678              } else if (itEvent->Type == Event::type_note_pressure) {              } else if (itEvent->Type == Event::type_note_pressure) {
679                  ProcessPolyphonicKeyPressureEvent(itEvent);                  ProcessPolyphonicKeyPressureEvent(itEvent);
680              }              }

Legend:
Removed from v.3016  
changed lines
  Added in v.3017

  ViewVC Help
Powered by ViewVC