update note frequency when changing base note in instrument track
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@146 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -59,6 +59,10 @@ notePlayHandle::notePlayHandle( instrumentTrack * _it,
|
||||
m_arpNote( _arp_note ),
|
||||
m_muted( FALSE )
|
||||
{
|
||||
connect( m_instrumentTrack, SIGNAL( baseNoteChanged() ),
|
||||
this, SLOT( updateFrequency() ) );
|
||||
updateFrequency();
|
||||
|
||||
setFrames( _frames );
|
||||
if( !configManager::inst()->value( "ui",
|
||||
"manualchannelpiano" ).toInt() )
|
||||
@@ -391,4 +395,15 @@ bool notePlayHandle::operator==( const notePlayHandle & _nph ) const
|
||||
|
||||
|
||||
|
||||
|
||||
void notePlayHandle::updateFrequency( void )
|
||||
{
|
||||
m_frequency = m_instrumentTrack->frequency( this );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include "note_play_handle.moc"
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user