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); |
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 |
} |
} |