NotePlayHandle: use public method for accessing pitch model

Do not use private m_pitchModel member variable of InstrumentTrack even
if NotePlayHandle is a friend class. Instead use the already existing
InstrumentTrack::pitchModel() method.
This commit is contained in:
Tobias Doerffel
2009-05-16 15:08:40 +02:00
parent 40b9b1cb4c
commit 9dcb62c630

View File

@@ -463,7 +463,7 @@ void notePlayHandle::updateFrequency( void )
( key() - m_instrumentTrack->baseNoteModel()->value() +
engine::getSong()->masterPitch() ) / 12.0f;
m_frequency = BaseFreq * powf( 2.0f, pitch +
m_instrumentTrack->m_pitchModel.value() / ( 100 * 12.0f ) );
m_instrumentTrack->pitchModel()->value() / ( 100 * 12.0f ) );
m_unpitchedFrequency = BaseFreq * powf( 2.0f, pitch );
for( notePlayHandleVector::iterator it = m_subNotes.begin();