Skip to content

Commit

Permalink
Merge pull request #1331 from vgstef/LoopPlayback
Browse files Browse the repository at this point in the history
Fix loop out playback on last note
  • Loading branch information
lasconic committed Sep 22, 2014
2 parents d9bf96b + e7d0273 commit dc2a078
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mscore/seq.cpp
Expand Up @@ -1519,6 +1519,9 @@ void Seq::setLoopOut()
tick = cs->pos() + cs->inputState().ticks(); // Otherwise, use the selected note.
if (tick <= cs->loopInTick()) // If Out pos <= In pos, reset In pos to beginning of score
cs->setPos(POS::LEFT, 0);
else
if (tick > cs->lastMeasure()->endTick() - 1)
tick = cs->lastMeasure()->endTick() - 1;
cs->setPos(POS::RIGHT, tick);
if (state == Transport::PLAY)
guiToSeq(SeqMsg(SeqMsgId::SEEK, tick));
Expand Down

0 comments on commit dc2a078

Please sign in to comment.