From 1c384732559c3597a687b75b8dda2278bf29ecec Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 16 May 2009 15:08:40 +0200 Subject: [PATCH] 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. (cherry picked from commit 9dcb62c6306dd1227520c5cb1062dde79e50a189) --- src/core/note_play_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/note_play_handle.cpp b/src/core/note_play_handle.cpp index 5996ed4f3..df7fdddae 100644 --- a/src/core/note_play_handle.cpp +++ b/src/core/note_play_handle.cpp @@ -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();