pulse metronome led when enabled
This commit is contained in:
parent
a96b320e3d
commit
d407d09d9c
@ -781,8 +781,22 @@ Push2::notify_loop_state_changed ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user