/[svn]/linuxsampler/trunk/src/engines/common/AbstractVoice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/AbstractVoice.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3637 by schoenebeck, Thu Oct 3 13:37:25 2019 UTC revision 3638 by schoenebeck, Fri Oct 25 17:08:46 2019 UTC
# Line 242  namespace LinuxSampler { Line 242  namespace LinuxSampler {
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;
# Line 498  namespace LinuxSampler { Line 498  namespace LinuxSampler {
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    
# Line 609  namespace LinuxSampler { Line 609  namespace LinuxSampler {
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;

Legend:
Removed from v.3637  
changed lines
  Added in v.3638

  ViewVC Help
Powered by ViewVC