503 |
|
|
504 |
void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) { |
void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) { |
505 |
dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type)); |
dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type)); |
506 |
if (itEvent->Param.Note.Key != MIDIKey) { |
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)); |
dmsg(4,("Voice %x - kill", this)); |
510 |
if (pRegion->off_mode == ::sfz::OFF_NORMAL) { |
if (pRegion->off_mode == ::sfz::OFF_NORMAL) { |
511 |
// turn off the voice by entering release envelope stage |
// turn off the voice by entering release envelope stage |