4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2008 Christian Schoenebeck * |
7 |
* Copyright (C) 2009 - 2013 Christian Schoenebeck and Grigor Iliev * |
* Copyright (C) 2009 - 2015 Christian Schoenebeck and Grigor Iliev * |
8 |
* * |
* * |
9 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
10 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
487 |
} |
} |
488 |
|
|
489 |
void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) { |
void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) { |
490 |
dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type)); |
dmsg(4,("Voice %p processGroupEvents event type=%d", (void*)this, itEvent->Type)); |
491 |
|
|
492 |
// TODO: The SustainPedal condition could be wrong, maybe the |
// TODO: The SustainPedal condition could be wrong, maybe the |
493 |
// check should be if this Voice is in release stage or is a |
// check should be if this Voice is in release stage or is a |
500 |
// -- Christian, 2013-01-08 |
// -- Christian, 2013-01-08 |
501 |
if (itEvent->Param.Note.Key != MIDIKey /*|| |
if (itEvent->Param.Note.Key != MIDIKey /*|| |
502 |
!GetGigEngineChannel()->SustainPedal*/) { |
!GetGigEngineChannel()->SustainPedal*/) { |
503 |
dmsg(4,("Voice %x - kill", this)); |
dmsg(4,("Voice %p - kill", (void*)this)); |
504 |
|
|
505 |
// kill the voice fast |
// kill the voice fast |
506 |
pEG1->enterFadeOutStage(); |
pEG1->enterFadeOutStage(); |