1 #include "ardour/session.h"
5 using namespace ArdourSurface;
10 if (session->transport_rolling ()) {
18 Push2::button_recenable ()
36 Push2::button_right ()
38 ScrollTimeline (0.75);
44 ScrollTimeline (-0.75);
48 Push2::button_repeat ()
54 Push2::button_metronome ()
68 access_action ("Editor/start-range-from-playhead");
70 id_button_map[New]->set_color (LED::White);
71 id_button_map[New]->set_state (LED::NoTransition);
72 write (id_button_map[New]->state_msg());
74 /* blink the button for the other half of this operation */
76 id_button_map[FixedLength]->set_color (LED::White);
77 id_button_map[FixedLength]->set_state (LED::Blinking4th);
78 write (id_button_map[FixedLength]->state_msg());
83 Push2::button_fixed_length ()
85 access_action ("Editor/finish-range-from-playhead");
87 /* turn off both buttons for this operation */
89 id_button_map[New]->set_color (LED::Black);
90 id_button_map[New]->set_state (LED::NoTransition);
91 write (id_button_map[New]->state_msg());
92 id_button_map[FixedLength]->set_color (LED::Black);
93 id_button_map[FixedLength]->set_state (LED::NoTransition);
94 write (id_button_map[FixedLength]->state_msg());