/[svn]/linuxsampler/trunk/src/engines/gig/Voice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Voice.cpp

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

revision 80 by schoenebeck, Sun May 23 19:16:33 2004 UTC revision 111 by schoenebeck, Sat Jun 5 20:55:50 2004 UTC
# Line 520  namespace LinuxSampler { namespace gig { Line 520  namespace LinuxSampler { namespace gig {
520      void Voice::Render(uint Samples) {      void Voice::Render(uint Samples) {
521    
522          // Reset the synthesis parameter matrix          // Reset the synthesis parameter matrix
523          pEngine->ResetSynthesisParameters(Event::destination_vca, this->Volume);          pEngine->ResetSynthesisParameters(Event::destination_vca, this->Volume * pEngine->GlobalVolume);
524          pEngine->ResetSynthesisParameters(Event::destination_vco, this->PitchBase);          pEngine->ResetSynthesisParameters(Event::destination_vco, this->PitchBase);
525      #if ENABLE_FILTER      #if ENABLE_FILTER
526          pEngine->ResetSynthesisParameters(Event::destination_vcfc, VCFCutoffCtrl.fvalue);          pEngine->ResetSynthesisParameters(Event::destination_vcfc, VCFCutoffCtrl.fvalue);
# Line 789  namespace LinuxSampler { namespace gig { Line 789  namespace LinuxSampler { namespace gig {
789                  prev_res    = pEngine->pSynthesisParameters[Event::destination_vcfr][i];                  prev_res    = pEngine->pSynthesisParameters[Event::destination_vcfr][i];
790                  FilterLeft.SetParameters(&bqbase, &bqmain, prev_cutoff, prev_res, SampleRate);                  FilterLeft.SetParameters(&bqbase, &bqmain, prev_cutoff, prev_res, SampleRate);
791              }              }
             pEngine->pBasicFilterParameters[i] = bqbase;  
792    
793              //same as 'pEngine->pBasicFilterParameters[i] = bqbase;'              //same as 'pEngine->pBasicFilterParameters[i] = bqbase;'
794              bq    = (float*) &pEngine->pBasicFilterParameters[i];              bq    = (float*) &pEngine->pBasicFilterParameters[i];

Legend:
Removed from v.80  
changed lines
  Added in v.111

  ViewVC Help
Powered by ViewVC