--- linuxsampler/trunk/src/engines/gig/Voice.cpp 2004/09/15 13:59:08 242 +++ linuxsampler/trunk/src/engines/gig/Voice.cpp 2004/09/17 01:01:11 244 @@ -293,7 +293,7 @@ // calculate initial pitch value { - double pitchbasecents = pDimRgn->FineTune * 10; + double pitchbasecents = pDimRgn->FineTune * 10 + (int) pEngine->ScaleTuning[MIDIKey % 12]; if (pDimRgn->PitchTrack) pitchbasecents += (MIDIKey - (int) pDimRgn->UnityNote) * 100; this->PitchBase = RTMath::CentsToFreqRatio(pitchbasecents) * (double(pSample->SamplesPerSecond) / double(pEngine->pAudioOutputDevice->SampleRate())); this->PitchBend = RTMath::CentsToFreqRatio(((double) PitchBend / 8192.0) * 200.0); // pitchbend wheel +-2 semitones = 200 cents