NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / surfaces / mackie / mcp_buttons.cc
1 /*
2         Copyright (C) 2006,2007 John Anderson
3         Copyright (C) 2012 Paul Davis
4
5         This program is free software; you can redistribute it and/or modify
6         it under the terms of the GNU General Public License as published by
7         the Free Software Foundation; either version 2 of the License, or
8         (at your option) any later version.
9
10         This program is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13         GNU General Public License for more details.
14
15         You should have received a copy of the GNU General Public License
16         along with this program; if not, write to the Free Software
17         Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <algorithm>
21
22 #include "pbd/memento_command.h"
23
24 #include "ardour/debug.h"
25 #include "ardour/session.h"
26 #include "ardour/route.h"
27 #include "ardour/location.h"
28 #include "ardour/rc_configuration.h"
29
30 #include "mackie_control_protocol.h"
31 #include "surface.h"
32 #include "fader.h"
33
34 #include "i18n.h"
35
36 /* handlers for all buttons, broken into a separate file to avoid clutter in
37  * mackie_control_protocol.cc
38  */
39
40 using std::string;
41 using namespace ARDOUR;
42 using namespace PBD;
43 using namespace ArdourSurface;
44 using namespace Mackie;
45
46 LedState
47 MackieControlProtocol::shift_press (Button &)
48 {
49         _modifier_state |= MODIFIER_SHIFT;
50         return on;
51 }
52 LedState
53 MackieControlProtocol::shift_release (Button &)
54 {
55         _modifier_state &= ~MODIFIER_SHIFT;
56         return off;
57 }
58 LedState
59 MackieControlProtocol::option_press (Button &)
60 {
61         _modifier_state |= MODIFIER_OPTION;
62         return on;
63 }
64 LedState
65 MackieControlProtocol::option_release (Button &)
66 {
67         _modifier_state &= ~MODIFIER_OPTION;
68         return off;
69 }
70 LedState
71 MackieControlProtocol::control_press (Button &)
72 {
73         _modifier_state |= MODIFIER_CONTROL;
74         DEBUG_TRACE (DEBUG::MackieControl, string_compose ("CONTROL Press: modifier state now set to %1\n", _modifier_state));
75         return on;
76 }
77 LedState
78 MackieControlProtocol::control_release (Button &)
79 {
80         _modifier_state &= ~MODIFIER_CONTROL;
81         DEBUG_TRACE (DEBUG::MackieControl, string_compose ("CONTROL Release: modifier state now set to %1\n", _modifier_state));
82         return off;
83 }
84 LedState
85 MackieControlProtocol::cmd_alt_press (Button &)
86 {
87         _modifier_state |= MODIFIER_CMDALT;
88         return on;
89 }
90 LedState
91 MackieControlProtocol::cmd_alt_release (Button &)
92 {
93         _modifier_state &= ~MODIFIER_CMDALT;
94         return off;
95 }
96
97 LedState
98 MackieControlProtocol::left_press (Button &)
99 {
100         Sorted sorted = get_sorted_routes();
101         uint32_t strip_cnt = n_strips ();
102
103         DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank left with current initial = %1 nstrips = %2 tracks/busses = %3\n",
104                                                            _current_initial_bank, strip_cnt, sorted.size()));
105         if (_current_initial_bank > 0) {
106                 switch_banks ((_current_initial_bank - 1) / strip_cnt * strip_cnt);
107         } else {
108                 switch_banks (0);
109         }
110
111
112         return on;
113 }
114
115 LedState
116 MackieControlProtocol::left_release (Button &)
117 {
118         return off;
119 }
120
121 LedState
122 MackieControlProtocol::right_press (Button &)
123 {
124         Sorted sorted = get_sorted_routes();
125         uint32_t strip_cnt = n_strips();
126         uint32_t route_cnt = sorted.size();
127         uint32_t max_bank = route_cnt / strip_cnt * strip_cnt;
128
129
130         DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank right with current initial = %1 nstrips = %2 tracks/busses = %3\n",
131                                                            _current_initial_bank, strip_cnt, route_cnt));
132
133         if (_current_initial_bank < max_bank) {
134                 uint32_t new_initial = (_current_initial_bank / strip_cnt * strip_cnt) + strip_cnt;
135
136                 switch_banks (new_initial);
137         } else {
138                 switch_banks (max_bank);
139         }
140
141         return on;
142 }
143
144 LedState
145 MackieControlProtocol::right_release (Button &)
146 {
147         if (zoom_mode()) {
148
149         }
150
151         return off;
152 }
153
154 LedState
155 MackieControlProtocol::cursor_left_press (Button& )
156 {
157         if (zoom_mode()) {
158
159                 if (main_modifier_state() & MODIFIER_OPTION) {
160                         /* reset selected tracks to default vertical zoom */
161                 } else {
162                         ZoomOut (); /* EMIT SIGNAL */
163                 }
164         } else {
165                 float page_fraction;
166                 if (main_modifier_state() == MODIFIER_CONTROL) {
167                         page_fraction = 1.0;
168                 } else if (main_modifier_state() == MODIFIER_OPTION) {
169                         page_fraction = 0.1;
170                 } else if (main_modifier_state() == MODIFIER_SHIFT) {
171                         page_fraction = 2.0;
172                 } else {
173                         page_fraction = 0.25;
174                 }
175
176                 ScrollTimeline (-page_fraction);
177         }
178
179         return off;
180 }
181
182 LedState
183 MackieControlProtocol::cursor_left_release (Button&)
184 {
185         return off;
186 }
187
188 LedState
189 MackieControlProtocol::cursor_right_press (Button& )
190 {
191         if (zoom_mode()) {
192
193                 if (main_modifier_state() & MODIFIER_OPTION) {
194                         /* reset selected tracks to default vertical zoom */
195                 } else {
196                         ZoomIn (); /* EMIT SIGNAL */
197                 }
198         } else {
199                 float page_fraction;
200                 if (main_modifier_state() == MODIFIER_CONTROL) {
201                         page_fraction = 1.0;
202                 } else if (main_modifier_state() == MODIFIER_OPTION) {
203                         page_fraction = 0.1;
204                 } else if (main_modifier_state() == MODIFIER_SHIFT) {
205                         page_fraction = 2.0;
206                 } else {
207                         page_fraction = 0.25;
208                 }
209
210                 ScrollTimeline (page_fraction);
211         }
212
213         return off;
214 }
215
216 LedState
217 MackieControlProtocol::cursor_right_release (Button&)
218 {
219         return off;
220 }
221
222 LedState
223 MackieControlProtocol::cursor_up_press (Button&)
224 {
225         if (zoom_mode()) {
226
227                 if (main_modifier_state() & MODIFIER_CONTROL) {
228                         VerticalZoomInSelected (); /* EMIT SIGNAL */
229                 } else {
230                         VerticalZoomInAll (); /* EMIT SIGNAL */
231                 }
232         } else {
233                 StepTracksUp (); /* EMIT SIGNAL */
234         }
235         return off;
236 }
237
238 LedState
239 MackieControlProtocol::cursor_up_release (Button&)
240 {
241         return off;
242 }
243
244 LedState
245 MackieControlProtocol::cursor_down_press (Button&)
246 {
247         if (zoom_mode()) {
248                 if (main_modifier_state() & MODIFIER_OPTION) {
249                         VerticalZoomOutSelected (); /* EMIT SIGNAL */
250                 } else {
251                         VerticalZoomOutAll (); /* EMIT SIGNAL */
252                 }
253         } else {
254                 StepTracksDown (); /* EMIT SIGNAL */
255         }
256         return off;
257 }
258
259 LedState
260 MackieControlProtocol::cursor_down_release (Button&)
261 {
262         return off;
263 }
264
265 LedState
266 MackieControlProtocol::channel_left_press (Button &)
267 {
268         Sorted sorted = get_sorted_routes();
269         if (sorted.size() > n_strips()) {
270                 prev_track();
271                 return on;
272         } else {
273                 return flashing;
274         }
275 }
276
277 LedState
278 MackieControlProtocol::channel_left_release (Button &)
279 {
280         return off;
281 }
282
283 LedState
284 MackieControlProtocol::channel_right_press (Button &)
285 {
286         Sorted sorted = get_sorted_routes();
287         if (sorted.size() > n_strips()) {
288                 next_track();
289                 return on;
290         } else {
291                 return flashing;
292         }
293 }
294
295 LedState
296 MackieControlProtocol::channel_right_release (Button &)
297 {
298         return off;
299 }
300
301 Mackie::LedState
302 MackieControlProtocol::zoom_press (Mackie::Button &)
303 {
304         return none;
305 }
306
307 Mackie::LedState
308 MackieControlProtocol::zoom_release (Mackie::Button &)
309 {
310         if (_modifier_state & MODIFIER_ZOOM) {
311                 _modifier_state &= ~MODIFIER_ZOOM;
312         } else {
313                 _modifier_state |= MODIFIER_ZOOM;
314         }
315
316         return (zoom_mode() ? on : off);
317 }
318
319 Mackie::LedState
320 MackieControlProtocol::scrub_press (Mackie::Button &)
321 {
322         if (!surfaces.empty()) {
323                 // surfaces.front()->next_jog_mode ();
324                 _master_surface->next_jog_mode ();
325         }
326         return none;
327 }
328
329 Mackie::LedState
330 MackieControlProtocol::scrub_release (Mackie::Button &)
331 {
332         return none;
333 }
334
335 LedState
336 MackieControlProtocol::undo_press (Button&)
337 {
338         if (main_modifier_state() & MODIFIER_SHIFT) {
339                 Redo(); /* EMIT SIGNAL */
340         } else {
341                 Undo(); /* EMIT SIGNAL */
342         }
343         return off;
344 }
345
346 LedState
347 MackieControlProtocol::undo_release (Button&)
348 {
349         return off;
350 }
351
352 LedState
353 MackieControlProtocol::drop_press (Button &)
354 {
355         session->remove_last_capture();
356         return on;
357 }
358
359 LedState
360 MackieControlProtocol::drop_release (Button &)
361 {
362         return off;
363 }
364
365 LedState
366 MackieControlProtocol::save_press (Button &)
367 {
368         session->save_state ("");
369         return on;
370 }
371
372 LedState
373 MackieControlProtocol::save_release (Button &)
374 {
375         return off;
376 }
377
378 LedState
379 MackieControlProtocol::timecode_beats_press (Button &)
380 {
381         switch (_timecode_type) {
382         case ARDOUR::AnyTime::BBT:
383                 _timecode_type = ARDOUR::AnyTime::Timecode;
384                 break;
385         case ARDOUR::AnyTime::Timecode:
386                 _timecode_type = ARDOUR::AnyTime::BBT;
387                 break;
388         default:
389                 return off;
390         }
391
392         update_timecode_beats_led();
393
394         return on;
395 }
396
397 LedState
398 MackieControlProtocol::timecode_beats_release (Button &)
399 {
400         return off;
401 }
402
403 /////////////////////////////////////
404 // Functions
405 /////////////////////////////////////
406 LedState
407 MackieControlProtocol::marker_press (Button &)
408 {
409         string markername;
410
411         session->locations()->next_available_name (markername,"mcu");
412         add_marker (markername);
413
414         return on;
415 }
416
417 LedState
418 MackieControlProtocol::marker_release (Button &)
419 {
420         return off;
421 }
422
423 /////////////////////////////////////
424 // Transport Buttons
425 /////////////////////////////////////
426
427 LedState
428 MackieControlProtocol::stop_press (Button &)
429 {
430         transport_stop ();
431         return on;
432 }
433
434 LedState
435 MackieControlProtocol::stop_release (Button &)
436 {
437         return session->transport_stopped();
438 }
439
440 LedState
441 MackieControlProtocol::play_press (Button &)
442 {
443         /* if we're already rolling at normal speed, and we're pressed
444            again, jump back to where we started last time
445         */
446
447         transport_play (session->transport_speed() == 1.0);
448         return none;
449 }
450
451 LedState
452 MackieControlProtocol::play_release (Button &)
453 {
454         return none;
455 }
456
457 LedState
458 MackieControlProtocol::record_press (Button &)
459 {
460         rec_enable_toggle ();
461         return none;
462 }
463
464 LedState
465 MackieControlProtocol::record_release (Button &)
466 {
467         return none;
468 }
469
470 LedState
471 MackieControlProtocol::rewind_press (Button &)
472 {
473         if (main_modifier_state() == MODIFIER_CONTROL) {
474                 goto_start ();
475         } else {
476                 rewind ();
477         }
478         return none;
479 }
480
481 LedState
482 MackieControlProtocol::rewind_release (Button &)
483 {
484         return none;
485 }
486
487 LedState
488 MackieControlProtocol::ffwd_press (Button &)
489 {
490         if (main_modifier_state() == MODIFIER_CONTROL) {
491                 goto_end();
492         } else {
493                 ffwd ();
494         }
495         return none;
496 }
497
498 LedState
499 MackieControlProtocol::ffwd_release (Button &)
500 {
501         return none;
502 }
503
504 LedState
505 MackieControlProtocol::loop_press (Button &)
506 {
507         if (main_modifier_state() & MODIFIER_CONTROL) {
508                 set_view_mode (Loop);
509                 return on;
510         } else {
511                 session->request_play_loop (!session->get_play_loop());
512                 return none;
513         }
514 }
515
516 LedState
517 MackieControlProtocol::loop_release (Button &)
518 {
519         return none;
520 }
521
522 LedState
523 MackieControlProtocol::clicking_press (Button &)
524 {
525         bool state = !Config->get_clicking();
526         Config->set_clicking (state);
527         return state;
528 }
529
530 LedState
531 MackieControlProtocol::clicking_release (Button &)
532 {
533         return Config->get_clicking();
534 }
535
536 LedState MackieControlProtocol::global_solo_press (Button &)
537 {
538         bool state = !session->soloing();
539         session->set_solo (session->get_routes(), state);
540         return state;
541 }
542
543 LedState MackieControlProtocol::global_solo_release (Button &)
544 {
545         return session->soloing();
546 }
547
548 LedState
549 MackieControlProtocol::enter_press (Button &)
550 {
551         Enter(); /* EMIT SIGNAL */
552         return off;
553 }
554
555 LedState
556 MackieControlProtocol::enter_release (Button &)
557 {
558         return off;
559 }
560
561 LedState
562 MackieControlProtocol::F1_press (Button &)
563 {
564         return off;
565 }
566 LedState
567 MackieControlProtocol::F1_release (Button &)
568 {
569         return off;
570 }
571 LedState
572 MackieControlProtocol::F2_press (Button &)
573 {
574         return off;
575 }
576 LedState
577 MackieControlProtocol::F2_release (Button &)
578 {
579         return off;
580 }
581 LedState
582 MackieControlProtocol::F3_press (Button &)
583 {
584         return off;
585 }
586 LedState
587 MackieControlProtocol::F3_release (Button &)
588 {
589         return off;
590 }
591 LedState
592 MackieControlProtocol::F4_press (Button &)
593 {
594         return off;
595 }
596 LedState
597 MackieControlProtocol::F4_release (Button &)
598 {
599         return off;
600 }
601 LedState
602 MackieControlProtocol::F5_press (Button &)
603 {
604         return off;
605 }
606 LedState
607 MackieControlProtocol::F5_release (Button &)
608 {
609         return off;
610 }
611 LedState
612 MackieControlProtocol::F6_press (Button &)
613 {
614         return off;
615 }
616 LedState
617 MackieControlProtocol::F6_release (Button &)
618 {
619         return off;
620 }
621 LedState
622 MackieControlProtocol::F7_press (Button &)
623 {
624         return off;
625 }
626 LedState
627 MackieControlProtocol::F7_release (Button &)
628 {
629         return off;
630 }
631 LedState
632 MackieControlProtocol::F8_press (Button &)
633 {
634         CloseDialog (); /* EMIT SIGNAL */
635         return off;
636 }
637 LedState
638 MackieControlProtocol::F8_release (Button &)
639 {
640         return off;
641 }
642
643 /* UNIMPLEMENTED */
644
645 LedState
646 MackieControlProtocol::pan_press (Button &)
647 {
648         return off;
649 }
650 LedState
651 MackieControlProtocol::pan_release (Button &)
652 {
653         return none;
654 }
655 LedState
656 MackieControlProtocol::plugin_press (Button &)
657 {
658         return off;
659 }
660 LedState
661 MackieControlProtocol::plugin_release (Button &)
662 {
663         return none;
664 }
665 LedState
666 MackieControlProtocol::eq_press (Button &)
667 {
668         //set_view_mode (EQ);
669         // not implemented yet, turn off (see comments for send button)
670         return off;
671 }
672 LedState
673 MackieControlProtocol::eq_release (Button &)
674 {
675         return none;
676 }
677 LedState
678 MackieControlProtocol::dyn_press (Button &)
679 {
680         //set_view_mode (Dynamics);
681         // same as send
682         return off;
683 }
684 LedState
685 MackieControlProtocol::dyn_release (Button &)
686 {
687         return none;
688 }
689 LedState
690 MackieControlProtocol::flip_press (Button &)
691 {
692         if (_flip_mode != Normal) {
693                 set_flip_mode (Normal);
694         } else {
695                 set_flip_mode (Mirror);
696         }
697         return ((_flip_mode != Normal) ? on : off);
698 }
699 LedState
700 MackieControlProtocol::flip_release (Button &)
701 {
702         return none;
703 }
704 LedState
705 MackieControlProtocol::name_value_press (Button &)
706 {
707         return off;
708 }
709 LedState
710 MackieControlProtocol::name_value_release (Button &)
711 {
712         return off;
713 }
714 LedState
715 MackieControlProtocol::touch_press (Button &)
716 {
717         return off;
718 }
719 LedState
720 MackieControlProtocol::touch_release (Button &)
721 {
722         return off;
723 }
724 LedState
725 MackieControlProtocol::cancel_press (Button &)
726 {
727         return off;
728 }
729 LedState
730 MackieControlProtocol::cancel_release (Button &)
731 {
732         return off;
733 }
734 LedState
735 MackieControlProtocol::user_a_press (Button &)
736 {
737         transport_play (session->transport_speed() == 1.0);
738         return off;
739 }
740 LedState
741 MackieControlProtocol::user_a_release (Button &)
742 {
743         return off;
744 }
745 LedState
746 MackieControlProtocol::user_b_press (Button &)
747 {
748         transport_stop();
749         return off;
750 }
751 LedState
752 MackieControlProtocol::user_b_release (Button &)
753 {
754         return off;
755 }
756
757 LedState
758 MackieControlProtocol::master_fader_touch_press (Mackie::Button &)
759 {
760         DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_press\n");
761
762         Fader* master_fader = _master_surface->master_fader();
763
764         boost::shared_ptr<AutomationControl> ac = master_fader->control ();
765
766         master_fader->set_in_use (true);
767         master_fader->start_touch (transport_frame());
768
769         return none;
770 }
771 LedState
772 MackieControlProtocol::master_fader_touch_release (Mackie::Button &)
773 {
774         DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_release\n");
775
776         Fader* master_fader = _master_surface->master_fader();
777
778         master_fader->set_in_use (false);
779         master_fader->stop_touch (transport_frame(), true);
780
781         return none;
782 }
783
784 Mackie::LedState
785 MackieControlProtocol::read_press (Mackie::Button&)
786 {
787         _metering_active = !_metering_active;
788         notify_metering_state_changed ();
789         return _metering_active;
790 }
791 Mackie::LedState
792 MackieControlProtocol::read_release (Mackie::Button&)
793 {
794         return _metering_active;
795 }
796 Mackie::LedState
797 MackieControlProtocol::write_press (Mackie::Button&)
798 {
799         return none;
800 }
801 Mackie::LedState
802 MackieControlProtocol::write_release (Mackie::Button&)
803 {
804         return none;
805 }
806 Mackie::LedState
807 MackieControlProtocol::clearsolo_press (Mackie::Button&)
808 {
809         return none;
810 }
811 Mackie::LedState
812 MackieControlProtocol::clearsolo_release (Mackie::Button&)
813 {
814         return none;
815 }
816 Mackie::LedState
817 MackieControlProtocol::track_press (Mackie::Button&)
818 {
819
820         return off;
821 }
822 Mackie::LedState
823 MackieControlProtocol::track_release (Mackie::Button&)
824 {
825         return none;
826 }
827 Mackie::LedState
828 MackieControlProtocol::send_press (Mackie::Button&)
829 {
830 // code moved here from "sends_press"
831         //set_view_mode (Sends);
832         // Led state for vpot assignment should be radio button-ish
833         // Pressing any one should turn the rest off.
834         // but this is not implemented yet so leave off
835         //return on;
836         return off;
837 }
838 Mackie::LedState
839 MackieControlProtocol::send_release (Mackie::Button&)
840 {
841         return none;
842 }
843 Mackie::LedState
844 MackieControlProtocol::miditracks_press (Mackie::Button&)
845 {
846         return none;
847 }
848 Mackie::LedState
849 MackieControlProtocol::miditracks_release (Mackie::Button&)
850 {
851         return none;
852 }
853 Mackie::LedState
854 MackieControlProtocol::inputs_press (Mackie::Button&)
855 {
856         return none;
857 }
858 Mackie::LedState
859 MackieControlProtocol::inputs_release (Mackie::Button&)
860 {
861         return none;
862 }
863 Mackie::LedState
864 MackieControlProtocol::audiotracks_press (Mackie::Button&)
865 {
866         return none;
867 }
868 Mackie::LedState
869 MackieControlProtocol::audiotracks_release (Mackie::Button&)
870 {
871         return none;
872 }
873 Mackie::LedState
874 MackieControlProtocol::audioinstruments_press (Mackie::Button&)
875 {
876         return none;
877 }
878 Mackie::LedState
879 MackieControlProtocol::audioinstruments_release (Mackie::Button&)
880 {
881         return none;
882 }
883 Mackie::LedState
884 MackieControlProtocol::aux_press (Mackie::Button&)
885 {
886         return none;
887 }
888 Mackie::LedState
889 MackieControlProtocol::aux_release (Mackie::Button&)
890 {
891         return none;
892 }
893 Mackie::LedState
894 MackieControlProtocol::busses_press (Mackie::Button&)
895 {
896         return none;
897 }
898 Mackie::LedState
899 MackieControlProtocol::busses_release (Mackie::Button&)
900 {
901         return none;
902 }
903 Mackie::LedState
904 MackieControlProtocol::outputs_press (Mackie::Button&)
905 {
906         return none;
907 }
908 Mackie::LedState
909 MackieControlProtocol::outputs_release (Mackie::Button&)
910 {
911         return none;
912 }
913 Mackie::LedState
914 MackieControlProtocol::user_press (Mackie::Button&)
915 {
916         return none;
917 }
918 Mackie::LedState
919 MackieControlProtocol::user_release (Mackie::Button&)
920 {
921         return none;
922 }
923 Mackie::LedState
924 MackieControlProtocol::trim_press (Mackie::Button&)
925 {
926         return none;
927 }
928 Mackie::LedState
929 MackieControlProtocol::trim_release (Mackie::Button&)
930 {
931         return none;
932 }
933 Mackie::LedState
934 MackieControlProtocol::latch_press (Mackie::Button&)
935 {
936         return none;
937 }
938 Mackie::LedState
939 MackieControlProtocol::latch_release (Mackie::Button&)
940 {
941         return none;
942 }
943 Mackie::LedState
944 MackieControlProtocol::grp_press (Mackie::Button&)
945 {
946         return none;
947 }
948 Mackie::LedState
949 MackieControlProtocol::grp_release (Mackie::Button&)
950 {
951         return none;
952 }
953 Mackie::LedState
954 MackieControlProtocol::nudge_press (Mackie::Button&)
955 {
956         return none;
957 }
958 Mackie::LedState
959 MackieControlProtocol::nudge_release (Mackie::Button&)
960 {
961         return none;
962 }
963 Mackie::LedState
964 MackieControlProtocol::replace_press (Mackie::Button&)
965 {
966         return none;
967 }
968 Mackie::LedState
969 MackieControlProtocol::replace_release (Mackie::Button&)
970 {
971         return none;
972 }
973 Mackie::LedState
974 MackieControlProtocol::click_press (Mackie::Button&)
975 {
976         return none;
977 }
978 Mackie::LedState
979 MackieControlProtocol::click_release (Mackie::Button&)
980 {
981         return none;
982 }
983 Mackie::LedState
984 MackieControlProtocol::view_press (Mackie::Button&)
985 {
986         return none;
987 }
988 Mackie::LedState
989 MackieControlProtocol::view_release (Mackie::Button&)
990 {
991         return none;
992 }