270 |
// calculate influence of EG2 controller on EG2's parameters |
// calculate influence of EG2 controller on EG2's parameters |
271 |
EGInfo egInfo = CalculateEG2ControllerInfluence(eg2controllervalue); |
EGInfo egInfo = CalculateEG2ControllerInfluence(eg2controllervalue); |
272 |
|
|
273 |
|
if (pNote) { |
274 |
|
egInfo.Attack *= pNote->Override.CutoffAttack; |
275 |
|
egInfo.Decay *= pNote->Override.CutoffDecay; |
276 |
|
egInfo.Release *= pNote->Override.CutoffRelease; |
277 |
|
} |
278 |
|
|
279 |
TriggerEG2(egInfo, velrelease, velocityAttenuation, GetEngine()->SampleRate, MIDIVelocity()); |
TriggerEG2(egInfo, velrelease, velocityAttenuation, GetEngine()->SampleRate, MIDIVelocity()); |
280 |
} |
} |
281 |
|
|
815 |
case Event::synth_param_amp_lfo_freq: |
case Event::synth_param_amp_lfo_freq: |
816 |
pLFO1->setScriptFrequencyFactor(itEvent->Param.NoteSynthParam.AbsValue, GetEngine()->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
pLFO1->setScriptFrequencyFactor(itEvent->Param.NoteSynthParam.AbsValue, GetEngine()->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
817 |
break; |
break; |
818 |
|
case Event::synth_param_cutoff_lfo_depth: |
819 |
|
pLFO2->setScriptDepthFactor(itEvent->Param.NoteSynthParam.AbsValue); |
820 |
|
break; |
821 |
|
case Event::synth_param_cutoff_lfo_freq: |
822 |
|
pLFO2->setScriptFrequencyFactor(itEvent->Param.NoteSynthParam.AbsValue, GetEngine()->SampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE); |
823 |
|
break; |
824 |
case Event::synth_param_pitch_lfo_depth: |
case Event::synth_param_pitch_lfo_depth: |
825 |
pLFO3->setScriptDepthFactor(itEvent->Param.NoteSynthParam.AbsValue); |
pLFO3->setScriptDepthFactor(itEvent->Param.NoteSynthParam.AbsValue); |
826 |
break; |
break; |