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:
committed by
Tobias Doerffel
parent
86b0056488
commit
e2b85f963f
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user