13
0

control protocols: add trigger bang method to BasicUI

This commit is contained in:
Paul Davis 2022-08-27 08:15:17 -06:00
parent 092fdb5b46
commit 26c48aae1b
2 changed files with 25 additions and 0 deletions

View File

@ -801,6 +801,29 @@ BasicUI::goto_nth_marker (int n)
}
}
void
BasicUI::bang (int x, int y)
{
boost::shared_ptr<Route> r = session->get_remote_nth_route (x);
if (!r) {
return;
}
boost::shared_ptr<TriggerBox> tb = r->triggerbox();
if (!tb || !tb->active()) {
return;
}
TriggerPtr tp (tb->trigger (y));
if (!tp) {
return;
}
tp->bang ();
}
#if 0
this stuff is waiting to go in so that all UIs can offer complex solo/mute functionality

View File

@ -163,6 +163,8 @@ class LIBCONTROLCP_API BasicUI {
bool rewind_button_onoff() const;
bool loop_button_onoff() const;
void bang (int x, int y);
protected:
BasicUI ();
ARDOUR::Session* session;