control protocols: add trigger bang method to BasicUI
This commit is contained in:
parent
092fdb5b46
commit
26c48aae1b
@ -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
|
#if 0
|
||||||
this stuff is waiting to go in so that all UIs can offer complex solo/mute functionality
|
this stuff is waiting to go in so that all UIs can offer complex solo/mute functionality
|
||||||
|
|
||||||
|
@ -163,6 +163,8 @@ class LIBCONTROLCP_API BasicUI {
|
|||||||
bool rewind_button_onoff() const;
|
bool rewind_button_onoff() const;
|
||||||
bool loop_button_onoff() const;
|
bool loop_button_onoff() const;
|
||||||
|
|
||||||
|
void bang (int x, int y);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BasicUI ();
|
BasicUI ();
|
||||||
ARDOUR::Session* session;
|
ARDOUR::Session* session;
|
||||||
|
Loading…
Reference in New Issue
Block a user