Skip to content

Commit

Permalink
fixup - whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Oct 14, 2017
1 parent d6492f1 commit 8db7801
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/tracks/Pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,22 +229,21 @@ Note * Pattern::addNote( const Note & _new_note, const bool _quant_pos )
long new_note_abs_time = new_note->pos();
int key = new_note->key();
NoteVector::Iterator it = m_notes.begin();

while( it != m_notes.end() &&
( *it )->pos() < new_note_abs_time )
( *it )->pos() < new_note_abs_time )
{
++it;
++it;
}

while( it != m_notes.end() &&
( *it )->pos() == new_note_abs_time &&
( *it )->key() < key )
( *it )->pos() == new_note_abs_time &&
( *it )->key() < key )
{
++it;
++it;
}

m_notes.insert( it, new_note );
}

}
instrumentTrack()->unlock();

checkType();
Expand Down Expand Up @@ -308,8 +307,8 @@ void Pattern::rearrangeAllNotes()
NoteVector::Iterator test = m_notes.begin();
while( test != m_notes.end() )
{
qDebug() << "Pos: " << ( *test )->pos() << "Key: " << ( *test )->key();
++test;
qDebug() << "Pos: " << ( *test )->pos() << "Key: " << ( *test )->key();
++test;
}

}
Expand Down

0 comments on commit 8db7801

Please sign in to comment.