242 |
quickRampRate //NOTE: maybe we should have 2 separate pan smoothers, one for MIDI CC10 (with slow rate) and one for instrument script change_pan() calls (with fast rate) |
quickRampRate //NOTE: maybe we should have 2 separate pan smoothers, one for MIDI CC10 (with slow rate) and one for instrument script change_pan() calls (with fast rate) |
243 |
); |
); |
244 |
|
|
245 |
#ifdef CONFIG_INTERPOLATE_VOLUME |
#if CONFIG_INTERPOLATE_VOLUME |
246 |
// setup initial volume in synthesis parameters |
// setup initial volume in synthesis parameters |
247 |
#ifdef CONFIG_PROCESS_MUTED_CHANNELS |
#if CONFIG_PROCESS_MUTED_CHANNELS |
248 |
if (pEngineChannel->GetMute()) { |
if (pEngineChannel->GetMute()) { |
249 |
finalSynthesisParameters.fFinalVolumeLeft = 0; |
finalSynthesisParameters.fFinalVolumeLeft = 0; |
250 |
finalSynthesisParameters.fFinalVolumeRight = 0; |
finalSynthesisParameters.fFinalVolumeRight = 0; |
498 |
finalSynthesisParameters.fFinalPitch = Pitch.PitchBase * Pitch.PitchBend; |
finalSynthesisParameters.fFinalPitch = Pitch.PitchBase * Pitch.PitchBend; |
499 |
|
|
500 |
float fFinalVolume = VolumeSmoother.render() * CrossfadeSmoother.render(); |
float fFinalVolume = VolumeSmoother.render() * CrossfadeSmoother.render(); |
501 |
#ifdef CONFIG_PROCESS_MUTED_CHANNELS |
#if CONFIG_PROCESS_MUTED_CHANNELS |
502 |
if (pChannel->GetMute()) fFinalVolume = 0; |
if (pChannel->GetMute()) fFinalVolume = 0; |
503 |
#endif |
#endif |
504 |
|
|
609 |
NotePan[0].renderApplyTo(panL); |
NotePan[0].renderApplyTo(panL); |
610 |
NotePan[1].renderApplyTo(panR); |
NotePan[1].renderApplyTo(panR); |
611 |
|
|
612 |
#ifdef CONFIG_INTERPOLATE_VOLUME |
#if CONFIG_INTERPOLATE_VOLUME |
613 |
finalSynthesisParameters.fFinalVolumeDeltaLeft = |
finalSynthesisParameters.fFinalVolumeDeltaLeft = |
614 |
(fFinalVolume * VolumeLeft * panL - |
(fFinalVolume * VolumeLeft * panL - |
615 |
finalSynthesisParameters.fFinalVolumeLeft) / finalSynthesisParameters.uiToGo; |
finalSynthesisParameters.fFinalVolumeLeft) / finalSynthesisParameters.uiToGo; |