Revert "'Off beat' beat notes to MelodyPattern"

This reverts commit e4474af091.
This commit is contained in:
Oskar Wallgren
2017-04-24 02:21:32 +02:00
parent 2f51062d1e
commit 082dbed8e9
3 changed files with 3 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ public:
{
return m_patternType;
}
void checkType();
// next/previous track based on position in the containing track
Pattern * previousPattern() const;
@@ -132,6 +132,7 @@ private:
MidiTime beatPatternLength() const;
void setType( PatternTypes _new_pattern_type );
void checkType();
void resizeToFirstTrack();

View File

@@ -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();
}
}
}
}

View File

@@ -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;