264 |
float cutoff = *pRegion->cutoff; |
float cutoff = *pRegion->cutoff; |
265 |
cutoff *= RTMath::CentsToFreqRatioUnlimited( |
cutoff *= RTMath::CentsToFreqRatioUnlimited( |
266 |
MIDIKeyVelocity / 127.0f * pRegion->fil_veltrack + |
MIDIKeyVelocity / 127.0f * pRegion->fil_veltrack + |
267 |
(MIDIKey - pRegion->fil_keycenter) * pRegion->fil_keytrack); |
(MIDIKey() - pRegion->fil_keycenter) * pRegion->fil_keytrack); |
268 |
return cutoff; |
return cutoff; |
269 |
} |
} |
270 |
|
|
283 |
dmsg(4,("Voice %p processGroupEvents event type=%d", (void*)this, itEvent->Type)); |
dmsg(4,("Voice %p processGroupEvents event type=%d", (void*)this, itEvent->Type)); |
284 |
if (itEvent->Type == Event::type_control_change || |
if (itEvent->Type == Event::type_control_change || |
285 |
(Type & Voice::type_controller_triggered) || |
(Type & Voice::type_controller_triggered) || |
286 |
itEvent->Param.Note.Key != MIDIKey) { |
itEvent->Param.Note.Key != HostKey()) { |
287 |
dmsg(4,("Voice %p - kill", (void*)this)); |
dmsg(4,("Voice %p - kill", (void*)this)); |
288 |
if (pRegion->off_mode == ::sfz::OFF_NORMAL) { |
if (pRegion->off_mode == ::sfz::OFF_NORMAL) { |
289 |
// turn off the voice by entering release envelope stage |
// turn off the voice by entering release envelope stage |