462 |
velocityAttenuation, |
velocityAttenuation, |
463 |
sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
464 |
} |
} |
465 |
|
|
466 |
|
void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) { |
467 |
|
dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type)); |
468 |
|
|
469 |
|
// TODO: The SustainPedal condition could be wrong, maybe the |
470 |
|
// check should be if this Voice is in release stage or is a |
471 |
|
// release sample instead. Need to test this in GSt. |
472 |
|
if (itEvent->Param.Note.Key != MIDIKey || |
473 |
|
!GetGigEngineChannel()->SustainPedal) { |
474 |
|
dmsg(4,("Voice %x - kill", this)); |
475 |
|
|
476 |
|
// kill the voice fast |
477 |
|
pEG1->enterFadeOutStage(); |
478 |
|
} |
479 |
|
} |
480 |
|
|
481 |
}} // namespace LinuxSampler::gig |
}} // namespace LinuxSampler::gig |