373 |
float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) { |
float Voice::CalculateCutoffBase(uint8_t MIDIKeyVelocity) { |
374 |
float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity); |
float cutoff = pRegion->GetVelocityCutoff(MIDIKeyVelocity); |
375 |
if (pRegion->VCFKeyboardTracking) { |
if (pRegion->VCFKeyboardTracking) { |
376 |
cutoff *= RTMath::CentsToFreqRatioUnlimited((MIDIKey - pRegion->VCFKeyboardTrackingBreakpoint) * 100); |
cutoff *= RTMath::CentsToFreqRatioUnlimited((MIDIKey() - pRegion->VCFKeyboardTrackingBreakpoint) * 100); |
377 |
} |
} |
378 |
return cutoff; |
return cutoff; |
379 |
} |
} |
498 |
// note should be stopped at all, because it doesn't sound naturally |
// note should be stopped at all, because it doesn't sound naturally |
499 |
// with a drumkit. |
// with a drumkit. |
500 |
// -- Christian, 2013-01-08 |
// -- Christian, 2013-01-08 |
501 |
if (itEvent->Param.Note.Key != MIDIKey /*|| |
if (itEvent->Param.Note.Key != HostKey() /*|| |
502 |
!GetGigEngineChannel()->SustainPedal*/) { |
!GetGigEngineChannel()->SustainPedal*/) { |
503 |
dmsg(4,("Voice %p - kill", (void*)this)); |
dmsg(4,("Voice %p - kill", (void*)this)); |
504 |
|
|