mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-13 11:38:24 -04:00
- trigger automation only when time has changed
- remove references from patterns when closing the application git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@250 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1500,6 +1500,14 @@ track::~track()
|
||||
delete m_trackWidget;
|
||||
m_trackWidget = NULL;
|
||||
}
|
||||
|
||||
QPtrListIterator<automationPattern> it( m_automation_patterns );
|
||||
automationPattern * pattern ;
|
||||
while( ( pattern = it.current() ) )
|
||||
{
|
||||
++it;
|
||||
pattern->forgetTrack();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1757,8 +1765,14 @@ void track::removeAutomationPattern( automationPattern * _pattern )
|
||||
|
||||
|
||||
|
||||
void track::sendMidiTime( const midiTime & _time )
|
||||
bool track::sendMidiTime( const midiTime & _time )
|
||||
{
|
||||
if( m_last_time_sent == _time )
|
||||
{
|
||||
return( FALSE );
|
||||
}
|
||||
m_last_time_sent = _time;
|
||||
|
||||
QPtrListIterator<automationPattern> it( m_automation_patterns );
|
||||
automationPattern * pattern ;
|
||||
while( ( pattern = it.current() ) )
|
||||
@@ -1766,6 +1780,7 @@ void track::sendMidiTime( const midiTime & _time )
|
||||
++it;
|
||||
pattern->processMidiTime( _time );
|
||||
}
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user