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 |
|
|