/[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 2408 by persson, Sat Feb 2 08:22:49 2013 UTC revision 2559 by schoenebeck, Sun May 18 17:38:25 2014 UTC
# Line 124  namespace LinuxSampler { namespace gig { Line 124  namespace LinuxSampler { namespace gig {
124          }          }
125      }      }
126    
127        void Voice::ProcessChannelPressureEvent(RTList<Event>::Iterator& itEvent) {
128            if (itEvent->Type == Event::type_channel_pressure) { // if (valid) MIDI channel pressure (aftertouch) event
129                if (pRegion->AttenuationController.type == ::gig::attenuation_ctrl_t::type_channelaftertouch) {
130                    CrossfadeSmoother.update(AbstractEngine::CrossfadeCurve[CrossfadeAttenuation(itEvent->Param.ChannelPressure.Value)]);
131                }
132            }
133        }
134    
135        void Voice::ProcessPolyphonicKeyPressureEvent(RTList<Event>::Iterator& itEvent) {
136            // Not used so far
137        }
138    
139      void Voice::ProcessCutoffEvent(RTList<Event>::Iterator& itEvent) {      void Voice::ProcessCutoffEvent(RTList<Event>::Iterator& itEvent) {
140          int ccvalue = itEvent->Param.CC.Value;          int ccvalue = itEvent->Param.CC.Value;
141          if (VCFCutoffCtrl.value == ccvalue) return;          if (VCFCutoffCtrl.value == ccvalue) return;

Legend:
Removed from v.2408  
changed lines
  Added in v.2559

  ViewVC Help
Powered by ViewVC