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

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

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

revision 39 by schoenebeck, Wed Mar 10 22:01:36 2004 UTC revision 40 by schoenebeck, Tue Mar 30 13:14:58 2004 UTC
# Line 325  void AudioThread::ProcessNoteOff(Modulat Line 325  void AudioThread::ProcessNoteOff(Modulat
325    
326  /**  /**
327   *  Moves pitchbend event from the general (input) event list to the pitch   *  Moves pitchbend event from the general (input) event list to the pitch
328   *  event list and converts absolute pitch value to delta pitch value.   *  event list.
329   *   *
330   *  @param pPitchbendEvent - absolute pitch value and time stamp of the event   *  @param pPitchbendEvent - absolute pitch value and time stamp of the event
331   */   */
332  void AudioThread::ProcessPitchbend(ModulationSystem::Event* pPitchbendEvent) {  void AudioThread::ProcessPitchbend(ModulationSystem::Event* pPitchbendEvent) {
333      int currentPitch        = pPitchbendEvent->Pitch;      this->Pitch = pPitchbendEvent->Pitch; // store current pitch value
     pPitchbendEvent->Pitch -= this->Pitch;  // convert to delta  
     this->Pitch             = currentPitch; // store current absolute pitch value  
334      pEvents->move(pPitchbendEvent, pSynthesisEvents[ModulationSystem::destination_vco]);      pEvents->move(pPitchbendEvent, pSynthesisEvents[ModulationSystem::destination_vco]);
335  }  }
336    

Legend:
Removed from v.39  
changed lines
  Added in v.40

  ViewVC Help
Powered by ViewVC