/[svn]/linuxsampler/trunk/src/voice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/voice.cpp

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

revision 16 by schoenebeck, Sun Nov 23 21:16:49 2003 UTC revision 17 by schoenebeck, Sat Nov 29 15:17:48 2003 UTC
# Line 79  void Voice::Trigger(int MIDIKey, uint8_t Line 79  void Voice::Trigger(int MIDIKey, uint8_t
79      }      }
80    
81      CurrentPitch = pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12);      CurrentPitch = pow(2, (double) (MIDIKey - (int) pSample->MIDIUnityNote) / (double) 12);
82        Volume       = pDimRgn->GetVelocityAttenuation(Velocity);
83    
84      // ************************************************      // ************************************************
85      // TODO: ARTICULATION DATA HANDLING IS MISSING HERE      // TODO: ARTICULATION DATA HANDLING IS MISSING HERE
# Line 138  void Voice::RenderAudio() { Line 139  void Voice::RenderAudio() {
139  }  }
140    
141  void Voice::Interpolate(sample_t* pSrc) {  void Voice::Interpolate(sample_t* pSrc) {
142      float effective_volume = 1;  // TODO: use the art. data instead      float effective_volume = this->Volume;
143      int   i = 0;      int   i = 0;
144    
145      // ************************************************      // ************************************************

Legend:
Removed from v.16  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC