Drop notes with length zero (#3031)

This commit is contained in:
Javier Serrano Polo
2016-09-12 20:10:18 +00:00
committed by GitHub
parent ede0e07f5e
commit 1f90337523
6 changed files with 65 additions and 189 deletions

View File

@@ -97,6 +97,7 @@ public:
static tick_t ticksPerTact( const TimeSig &sig );
static int stepsPerTact();
static void setTicksPerTact( tick_t tpt );
static MidiTime stepPosition( int step );
private:
tick_t m_ticks;

View File

@@ -70,11 +70,11 @@ public:
// note management
Note * addNote( const Note & _new_note, const bool _quant_pos = true );
void removeNote( const Note * _note_to_del );
void removeNote( Note * _note_to_del );
Note * noteAtStep( int _step );
Note * rearrangeNote( const Note * _note_to_proc,
Note * rearrangeNote( Note * _note_to_proc,
const bool _quant_pos = true );
void rearrangeAllNotes();
void clearNotes();
@@ -84,7 +84,8 @@ public:
return m_notes;
}
void setStep( int _step, bool _enabled );
Note * addStepNote( int step );
void setStep( int step, bool enabled );
// pattern-type stuff
inline PatternTypes type() const
@@ -122,7 +123,6 @@ public:
protected:
void ensureBeatNotes();
void updateBBTrack();