280 |
pRegion->LFO1FlipPhase, |
pRegion->LFO1FlipPhase, |
281 |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
282 |
pLFO1->updateByMIDICtrlValue(pLFO1->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO1->ExtController] : 0); |
pLFO1->updateByMIDICtrlValue(pLFO1->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO1->ExtController] : 0); |
283 |
pLFO1->setScriptDepthFactor(pNote->Override.AmpLFODepth); |
pLFO1->setScriptDepthFactor( |
284 |
pLFO1->setScriptFrequencyFactor(pNote->Override.AmpLFOFreq, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pNote->Override.AmpLFODepth.Value, |
285 |
|
pNote->Override.AmpLFODepth.Final |
286 |
|
); |
287 |
|
if (pNote->Override.AmpLFOFreq.isFinal()) |
288 |
|
pLFO1->setScriptFrequencyFinal( |
289 |
|
pNote->Override.AmpLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE |
290 |
|
); |
291 |
|
else |
292 |
|
pLFO1->setScriptFrequencyFactor( |
293 |
|
pNote->Override.AmpLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE |
294 |
|
); |
295 |
} |
} |
296 |
} |
} |
297 |
|
|
336 |
pRegion->LFO2FlipPhase, |
pRegion->LFO2FlipPhase, |
337 |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
338 |
pLFO2->updateByMIDICtrlValue(pLFO2->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO2->ExtController] : 0); |
pLFO2->updateByMIDICtrlValue(pLFO2->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO2->ExtController] : 0); |
339 |
|
pLFO2->setScriptDepthFactor( |
340 |
|
pNote->Override.CutoffLFODepth.Value, |
341 |
|
pNote->Override.CutoffLFODepth.Final |
342 |
|
); |
343 |
|
if (pNote->Override.CutoffLFOFreq.isFinal()) |
344 |
|
pLFO2->setScriptFrequencyFinal(pNote->Override.CutoffLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
345 |
|
else |
346 |
|
pLFO2->setScriptFrequencyFactor(pNote->Override.CutoffLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
347 |
} |
} |
348 |
} |
} |
349 |
|
|
388 |
false, |
false, |
389 |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
390 |
pLFO3->updateByMIDICtrlValue(pLFO3->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO3->ExtController] : 0); |
pLFO3->updateByMIDICtrlValue(pLFO3->ExtController ? GetGigEngineChannel()->ControllerTable[pLFO3->ExtController] : 0); |
391 |
pLFO3->setScriptDepthFactor(pNote->Override.PitchLFODepth); |
pLFO3->setScriptDepthFactor( |
392 |
pLFO3->setScriptFrequencyFactor(pNote->Override.PitchLFOFreq, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pNote->Override.PitchLFODepth.Value, |
393 |
|
pNote->Override.PitchLFODepth.Final |
394 |
|
); |
395 |
|
if (pNote->Override.PitchLFOFreq.isFinal()) |
396 |
|
pLFO3->setScriptFrequencyFinal(pNote->Override.PitchLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
397 |
|
else |
398 |
|
pLFO3->setScriptFrequencyFactor(pNote->Override.PitchLFOFreq.Value, pEngine->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
399 |
} |
} |
400 |
} |
} |
401 |
|
|
503 |
pRegion->EG1Decay1 * egInfo.Decay * velrelease, |
pRegion->EG1Decay1 * egInfo.Decay * velrelease, |
504 |
pRegion->EG1Decay2 * egInfo.Decay * velrelease, |
pRegion->EG1Decay2 * egInfo.Decay * velrelease, |
505 |
pRegion->EG1InfiniteSustain, |
pRegion->EG1InfiniteSustain, |
506 |
pRegion->EG1Sustain * (pNote ? pNote->Override.Sustain : 1.f), |
(pNote && pNote->Override.Sustain.Final) ? |
507 |
|
pNote->Override.Sustain.Value : |
508 |
|
pRegion->EG1Sustain * (pNote ? pNote->Override.Sustain.Value : 1.f), |
509 |
RTMath::Max(pRegion->EG1Release * velrelease, 0.014) * egInfo.Release, |
RTMath::Max(pRegion->EG1Release * velrelease, 0.014) * egInfo.Release, |
510 |
velocityAttenuation, |
velocityAttenuation, |
511 |
sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
568 |
return p; |
return p; |
569 |
} |
} |
570 |
|
|
571 |
|
release_trigger_t Voice::GetReleaseTriggerFlags() { |
572 |
|
release_trigger_t flags = |
573 |
|
(pRegion->NoNoteOffReleaseTrigger) ? |
574 |
|
release_trigger_none : release_trigger_noteoff; //HACK: currently this method is actually only called by EngineBase if it already knows that this voice requires release trigger, so I took the short way instead of checking (again) the existence of a ::gig::dimension_releasetrigger |
575 |
|
switch (pRegion->SustainReleaseTrigger) { |
576 |
|
case ::gig::sust_rel_trg_none: |
577 |
|
break; |
578 |
|
case ::gig::sust_rel_trg_maxvelocity: |
579 |
|
flags |= release_trigger_sustain_maxvelocity; |
580 |
|
break; |
581 |
|
case ::gig::sust_rel_trg_keyvelocity: |
582 |
|
flags |= release_trigger_sustain_keyvelocity; |
583 |
|
break; |
584 |
|
} |
585 |
|
return flags; |
586 |
|
} |
587 |
|
|
588 |
}} // namespace LinuxSampler::gig |
}} // namespace LinuxSampler::gig |