InstrumentTrack: fixed calculation in midiPitch()

InstrumentTrack::midiPitch() returned 16384 instead of 16383 if pitch
was set to +100 cents. This commit fixes the calculation.
(cherry picked from commit 76662a3a51)
This commit is contained in:
Tobias Doerffel
2009-04-13 16:13:18 +02:00
parent b93d62124c
commit 1ed140eec4

View File

@@ -108,7 +108,7 @@ public:
// translate pitch to midi-pitch [0,16383]
inline int midiPitch( void ) const
{
return (int)( ( m_pitchModel.value()+100 ) * 81.92 );
return (int)( ( m_pitchModel.value()+100 ) * 16383 ) / 200;
}
// play everything in given frame-range - creates note-play-handles