trigger automation only when time has changed

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@249 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-07-22 03:23:24 +00:00
parent 685c7b9ef6
commit 8d2958b56f
2 changed files with 6 additions and 3 deletions

View File

@@ -501,7 +501,7 @@ public:
protected:
void sendMidiTime( const midiTime & _time );
bool sendMidiTime( const midiTime & _time );
QString m_name;
@@ -509,6 +509,7 @@ private:
trackContainer * m_trackContainer;
trackWidget * m_trackWidget;
QPtrList<automationPattern> m_automation_patterns;
midiTime m_last_time_sent;
} ;

View File

@@ -872,8 +872,10 @@ bool FASTCALL instrumentTrack::play( const midiTime & _start,
const f_cnt_t _frame_base,
Sint16 _tco_num )
{
sendMidiTime( _start );
emit sentMidiTime( _start );
if( sendMidiTime( _start ) )
{
emit sentMidiTime( _start );
}
// calculate samples per tact; need that later when calculating
// sample-pos of a note