allow to set/change loop-range via OSC

This commit is contained in:
Robin Gareus 2015-04-13 16:20:40 +02:00
parent aef6805114
commit d00ab0221a
4 changed files with 17 additions and 0 deletions

View file

@ -79,6 +79,20 @@ BasicUI::loop_toggle ()
}
}
void
BasicUI::loop_location (framepos_t start, framepos_t end)
{
Location* tll;
if ((tll = session->locations()->auto_loop_location()) == 0) {
Location* loc = new Location (*session, start, end, _("Loop"), Location::IsAutoLoop);
session->locations()->add (loc, true);
session->set_auto_loop_location (loc);
} else {
tll->set_hidden (false, this);
tll->set (start, end);
}
}
void
BasicUI::goto_start ()
{