Skip to content

Commit

Permalink
Revert "'Off beat' beat notes to MelodyPattern"
Browse files Browse the repository at this point in the history
This reverts commit e4474af.
  • Loading branch information
zonkmachine committed May 1, 2017
1 parent 2f51062 commit 082dbed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion include/Pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class EXPORT Pattern : public TrackContentObject
{
return m_patternType;
}
void checkType();


// next/previous track based on position in the containing track
Pattern * previousPattern() const;
Expand Down Expand Up @@ -132,6 +132,7 @@ protected slots:
MidiTime beatPatternLength() const;

void setType( PatternTypes _new_pattern_type );
void checkType();

void resizeToFirstTrack();

Expand Down
5 changes: 0 additions & 5 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2459,11 +2459,6 @@ void PianoRoll::dragNotes( int x, int y, bool alt, bool shift, bool ctrl )

note->setPos( MidiTime( pos_ticks ) );
note->setKey( key_num );
// If dragging beat notes check if pattern should be MelodyPattern
if( note->length() < 0 )
{
m_pattern->checkType();
}
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/tracks/Pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,7 @@ void Pattern::checkType()
NoteVector::Iterator it = m_notes.begin();
while( it != m_notes.end() )
{
if( ( *it )->length() > 0 ||
( *it )->pos() % ( MidiTime::ticksPerTact() /
MidiTime::stepsPerTact() ) )
if( ( *it )->length() > 0 )
{
setType( MelodyPattern );
return;
Expand Down

0 comments on commit 082dbed

Please sign in to comment.