mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
allow to set/change loop-range via OSC
This commit is contained in:
parent
aef6805114
commit
d00ab0221a
4 changed files with 17 additions and 0 deletions
|
|
@ -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 ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue