return cl;
}
+template<typename T> boost::shared_ptr<ControlList> stripable_list_to_control_list (StripableList& sl, boost::shared_ptr<T> (Stripable::*get_control)() const) {
+ boost::shared_ptr<ControlList> cl (new ControlList);
+ for (StripableList::const_iterator s = sl.begin(); s != sl.end(); ++s) {
+ boost::shared_ptr<AutomationControl> ac = ((*s).get()->*get_control)();
+ if (ac) {
+ cl->push_back (ac);
+ }
+ }
+ return cl;
+}
+
#if __APPLE__
LIBARDOUR_API std::string CFStringRefToStdString(CFStringRef stringRef);
#endif // __APPLE__
MAKE_COLOR_BUTTON (Lower6, 26);
MAKE_COLOR_BUTTON (Lower7, 27);
MAKE_COLOR_BUTTON (Mute, 60);
- MAKE_COLOR_BUTTON (Solo, 61);
+ MAKE_COLOR_BUTTON_PRESS (Solo, 61, &Push2::button_solo);
MAKE_COLOR_BUTTON (Stop, 29);
MAKE_COLOR_BUTTON (Fwd32ndT, 43);
MAKE_COLOR_BUTTON (Fwd32nd,42 );
if (session->transport_rolling()) {
b->second->set_state (LED::OneShot24th);
- b->second->set_color (LED::Blue);
+ b->second->set_color (LED::Green);
} else {
b->second->set_state (LED::Off);
}
return;
}
if (Config->get_clicking()) {
- b->second->set_state (LED::Pulsing4th);
+ b->second->set_state (LED::Blinking4th);
b->second->set_color (LED::White);
} else {
b->second->set_state (LED::Off);
void
Push2::notify_solo_active_changed (bool yn)
{
- IDButtonMap::iterator b = id_button_map.find (Solo);
+ IDButtonMap::iterator b = id_button_map.find (Solo);
if (b == id_button_map.end()) {
return;
}
if (yn) {
- b->second->set_state (LED::Blinking24th);
+ cerr << "soloing\n";
+ b->second->set_state (LED::Blinking4th);
+ b->second->set_color (LED::Red);
} else {
+ cerr << "NOT soloing\n";
b->second->set_state (LED::Off);
}