MidiControlListener can jump to begin/end of loop

Implements the MCL actions JumpToLoopStart and JumpToLoopEnd which
update the position in the via the timeLine object.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Achim Settelmeier
2009-06-01 01:54:52 +02:00
committed by Tobias Doerffel
parent 86b0056488
commit e2b85f963f

View File

@@ -180,8 +180,12 @@ void MidiControlListener::act( EventAction _action )
}
break;
case ActionJumpToLoopStart:
tl->pos().setTicks( tl->loopBegin().getTicks() );
tl->pos().setCurrentFrame( 0 );
break;
case ActionJumpToLoopEnd:
tl->pos().setTicks( tl->loopEnd().getTicks() );
tl->pos().setCurrentFrame( 0 );
break;
}
}