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:
@@ -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;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user