projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96b320
)
pulse metronome led when enabled
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 17 Jun 2016 03:04:23 +0000
(23:04 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:29 +0000
(14:59 -0500)
libs/surfaces/push2/push2.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/push2/push2.cc
b/libs/surfaces/push2/push2.cc
index 050b541899bcf2f52a6c5c2944fce879b2f390ee..4628d26cbe0b2feec0039c03b24c9c05c3be463e 100644
(file)
--- a/
libs/surfaces/push2/push2.cc
+++ b/
libs/surfaces/push2/push2.cc
@@
-781,8
+781,22
@@
Push2::notify_loop_state_changed ()
}
void
-Push2::notify_parameter_changed (std::string)
+Push2::notify_parameter_changed (std::string
param
)
{
+ IDButtonMap::iterator b;
+
+ if (param == "clicking") {
+ if ((b = id_button_map.find (Metronome)) == id_button_map.end()) {
+ return;
+ }
+ if (Config->get_clicking()) {
+ b->second->set_state (LED::Pulsing4th);
+ b->second->set_color (LED::White);
+ } else {
+ b->second->set_state (LED::Off);
+ }
+ write (b->second->state_msg ());
+ }
}
void