31d2ad9ee2099258638f1ae84c5858a922c7a87a
[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         bool was_on = session->get_play_loop();
508         session->request_play_loop (!was_on);
509         return was_on ? off : on;
510 }
511
512 LedState
513 MackieControlProtocol::loop_release (Button &)
514 {
515         return none;
516 }
517
518 LedState
519 MackieControlProtocol::clicking_press (Button &)
520 {
521         bool state = !Config->get_clicking();
522         Config->set_clicking (state);
523         return state;
524 }
525
526 LedState
527 MackieControlProtocol::clicking_release (Button &)
528 {
529         return Config->get_clicking();
530 }
531
532 LedState MackieControlProtocol::global_solo_press (Button &)
533 {
534         bool state = !session->soloing();
535         session->set_solo (session->get_routes(), state);
536         return state;
537 }
538
539 LedState MackieControlProtocol::global_solo_release (Button &)
540 {
541         return session->soloing();
542 }
543
544 LedState
545 MackieControlProtocol::enter_press (Button &)
546 {
547         Enter(); /* EMIT SIGNAL */
548         return off;
549 }
550
551 LedState
552 MackieControlProtocol::enter_release (Button &)
553 {
554         return off;
555 }
556
557 LedState
558 MackieControlProtocol::bank_release (Button& b, uint32_t basic_bank_num)
559 {
560         uint32_t bank_num = basic_bank_num;
561
562         if (b.long_press_count() > 0) {
563                 bank_num = 8 + basic_bank_num;
564         }
565
566         switch_banks (n_strips() * bank_num);
567
568         return on;
569 }
570
571 LedState
572 MackieControlProtocol::F1_press (Button &b)
573 {
574         return off;
575 }
576 LedState
577 MackieControlProtocol::F1_release (Button &b)
578 {
579         return bank_release (b, 0);
580 }
581 LedState
582 MackieControlProtocol::F2_press (Button &)
583 {
584         return off;
585 }
586 LedState
587 MackieControlProtocol::F2_release (Button &b)
588 {
589         return bank_release (b, 1);
590 }
591 LedState
592 MackieControlProtocol::F3_press (Button &)
593 {
594         return off;
595 }
596 LedState
597 MackieControlProtocol::F3_release (Button &b)
598 {
599         return bank_release (b, 2);
600 }
601 LedState
602 MackieControlProtocol::F4_press (Button &)
603 {
604         return off;
605 }
606 LedState
607 MackieControlProtocol::F4_release (Button &b)
608 {
609         return bank_release (b, 3);
610 }
611 LedState
612 MackieControlProtocol::F5_press (Button &)
613 {
614         return off;
615 }
616 LedState
617 MackieControlProtocol::F5_release (Button &)
618 {
619         return off;
620 }
621 LedState
622 MackieControlProtocol::F6_press (Button &)
623 {
624         return off;
625 }
626 LedState
627 MackieControlProtocol::F6_release (Button &)
628 {
629         return off;
630 }
631 LedState
632 MackieControlProtocol::F7_press (Button &)
633 {
634         return off;
635 }
636 LedState
637 MackieControlProtocol::F7_release (Button &)
638 {
639         return off;
640 }
641 LedState
642 MackieControlProtocol::F8_press (Button &)
643 {
644         CloseDialog (); /* EMIT SIGNAL */
645         return off;
646 }
647 LedState
648 MackieControlProtocol::F8_release (Button &)
649 {
650         return off;
651 }
652
653 /* UNIMPLEMENTED */
654
655 LedState
656 MackieControlProtocol::pan_press (Button &)
657 {
658         set_pot_mode (Pan);
659         return none;
660 }
661 LedState
662 MackieControlProtocol::pan_release (Button &)
663 {
664         return none;
665 }
666 LedState
667 MackieControlProtocol::plugin_press (Button &)
668 {
669         return off;
670 }
671 LedState
672 MackieControlProtocol::plugin_release (Button &)
673 {
674         set_view_mode (Plugins);
675         return none; /* LED state set by set_view_mode */
676 }
677 LedState
678 MackieControlProtocol::eq_press (Button &)
679 {
680         //set_view_mode (EQ);
681         // not implemented yet, turn off (see comments for send button)
682         return off;
683 }
684 LedState
685 MackieControlProtocol::eq_release (Button &)
686 {
687         return none;
688 }
689 LedState
690 MackieControlProtocol::dyn_press (Button &)
691 {
692         //set_view_mode (Dynamics);
693         // same as send
694         return off;
695 }
696 LedState
697 MackieControlProtocol::dyn_release (Button &)
698 {
699         return none;
700 }
701 LedState
702 MackieControlProtocol::flip_press (Button &)
703 {
704         if (_flip_mode != Normal) {
705                 set_flip_mode (Normal);
706         } else {
707                 set_flip_mode (Mirror);
708         }
709         return ((_flip_mode != Normal) ? on : off);
710 }
711 LedState
712 MackieControlProtocol::flip_release (Button &)
713 {
714         return none;
715 }
716 LedState
717 MackieControlProtocol::name_value_press (Button &)
718 {
719         return off;
720 }
721 LedState
722 MackieControlProtocol::name_value_release (Button &)
723 {
724         return off;
725 }
726 LedState
727 MackieControlProtocol::touch_press (Button &)
728 {
729         return off;
730 }
731 LedState
732 MackieControlProtocol::touch_release (Button &)
733 {
734         return off;
735 }
736 LedState
737 MackieControlProtocol::cancel_press (Button &)
738 {
739         return off;
740 }
741 LedState
742 MackieControlProtocol::cancel_release (Button &)
743 {
744         return off;
745 }
746 LedState
747 MackieControlProtocol::user_a_press (Button &)
748 {
749         transport_play (session->transport_speed() == 1.0);
750         return off;
751 }
752 LedState
753 MackieControlProtocol::user_a_release (Button &)
754 {
755         return off;
756 }
757 LedState
758 MackieControlProtocol::user_b_press (Button &)
759 {
760         transport_stop();
761         return off;
762 }
763 LedState
764 MackieControlProtocol::user_b_release (Button &)
765 {
766         return off;
767 }
768
769 LedState
770 MackieControlProtocol::master_fader_touch_press (Mackie::Button &)
771 {
772         DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_press\n");
773
774         Fader* master_fader = _master_surface->master_fader();
775
776         boost::shared_ptr<AutomationControl> ac = master_fader->control ();
777
778         master_fader->set_in_use (true);
779         master_fader->start_touch (transport_frame());
780
781         return none;
782 }
783 LedState
784 MackieControlProtocol::master_fader_touch_release (Mackie::Button &)
785 {
786         DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_release\n");
787
788         Fader* master_fader = _master_surface->master_fader();
789
790         master_fader->set_in_use (false);
791         master_fader->stop_touch (transport_frame(), true);
792
793         return none;
794 }
795
796 Mackie::LedState
797 MackieControlProtocol::read_press (Mackie::Button&)
798 {
799         _metering_active = !_metering_active;
800         notify_metering_state_changed ();
801         return _metering_active;
802 }
803 Mackie::LedState
804 MackieControlProtocol::read_release (Mackie::Button&)
805 {
806         return _metering_active;
807 }
808 Mackie::LedState
809 MackieControlProtocol::write_press (Mackie::Button&)
810 {
811         return none;
812 }
813 Mackie::LedState
814 MackieControlProtocol::write_release (Mackie::Button&)
815 {
816         return none;
817 }
818 Mackie::LedState
819 MackieControlProtocol::clearsolo_press (Mackie::Button&)
820 {
821         return none;
822 }
823 Mackie::LedState
824 MackieControlProtocol::clearsolo_release (Mackie::Button&)
825 {
826         return none;
827 }
828 Mackie::LedState
829 MackieControlProtocol::track_press (Mackie::Button&)
830 {
831         set_pot_mode (Trim);
832         return none;
833 }
834 Mackie::LedState
835 MackieControlProtocol::track_release (Mackie::Button&)
836 {
837         return none;
838 }
839 Mackie::LedState
840 MackieControlProtocol::send_press (Mackie::Button&)
841 {
842         return none;
843         // remove above line when sends implemented
844         set_pot_mode (Send);
845         return none;
846 }
847 Mackie::LedState
848 MackieControlProtocol::send_release (Mackie::Button&)
849 {
850         return none;
851 }
852 Mackie::LedState
853 MackieControlProtocol::miditracks_press (Mackie::Button&)
854 {
855         return none;
856 }
857 Mackie::LedState
858 MackieControlProtocol::miditracks_release (Mackie::Button&)
859 {
860         set_view_mode (MidiTracks);
861         return none;
862 }
863 Mackie::LedState
864 MackieControlProtocol::inputs_press (Mackie::Button&)
865 {
866         return none;
867 }
868 Mackie::LedState
869 MackieControlProtocol::inputs_release (Mackie::Button&)
870 {
871         return none;
872 }
873 Mackie::LedState
874 MackieControlProtocol::audiotracks_press (Mackie::Button&)
875 {
876         return none;
877 }
878 Mackie::LedState
879 MackieControlProtocol::audiotracks_release (Mackie::Button&)
880 {
881         set_view_mode (AudioTracks);
882         return none;
883 }
884 Mackie::LedState
885 MackieControlProtocol::audioinstruments_press (Mackie::Button&)
886 {
887         return none;
888 }
889 Mackie::LedState
890 MackieControlProtocol::audioinstruments_release (Mackie::Button&)
891 {
892         return none;
893 }
894 Mackie::LedState
895 MackieControlProtocol::aux_press (Mackie::Button&)
896 {
897         return none;
898 }
899 Mackie::LedState
900 MackieControlProtocol::aux_release (Mackie::Button&)
901 {
902         set_view_mode (Auxes);
903         return none;
904 }
905 Mackie::LedState
906 MackieControlProtocol::busses_press (Mackie::Button&)
907 {
908         return none;
909 }
910 Mackie::LedState
911 MackieControlProtocol::busses_release (Mackie::Button&)
912 {
913         set_view_mode (Busses);
914         return none;
915 }
916 Mackie::LedState
917 MackieControlProtocol::outputs_press (Mackie::Button&)
918 {
919         return none;
920 }
921 Mackie::LedState
922 MackieControlProtocol::outputs_release (Mackie::Button&)
923 {
924         return none;
925 }
926 Mackie::LedState
927 MackieControlProtocol::user_press (Mackie::Button&)
928 {
929         return none;
930 }
931 Mackie::LedState
932 MackieControlProtocol::user_release (Mackie::Button&)
933 {
934         set_view_mode (Selected);
935         return none;
936 }
937 Mackie::LedState
938 MackieControlProtocol::trim_press (Mackie::Button&)
939 {
940         return none;
941 }
942 Mackie::LedState
943 MackieControlProtocol::trim_release (Mackie::Button&)
944 {
945         return none;
946 }
947 Mackie::LedState
948 MackieControlProtocol::latch_press (Mackie::Button&)
949 {
950         return none;
951 }
952 Mackie::LedState
953 MackieControlProtocol::latch_release (Mackie::Button&)
954 {
955         return none;
956 }
957 Mackie::LedState
958 MackieControlProtocol::grp_press (Mackie::Button&)
959 {
960         return none;
961 }
962 Mackie::LedState
963 MackieControlProtocol::grp_release (Mackie::Button&)
964 {
965         return none;
966 }
967 Mackie::LedState
968 MackieControlProtocol::nudge_press (Mackie::Button&)
969 {
970         return none;
971 }
972 Mackie::LedState
973 MackieControlProtocol::nudge_release (Mackie::Button&)
974 {
975         return none;
976 }
977 Mackie::LedState
978 MackieControlProtocol::replace_press (Mackie::Button&)
979 {
980         return none;
981 }
982 Mackie::LedState
983 MackieControlProtocol::replace_release (Mackie::Button&)
984 {
985         return none;
986 }
987 Mackie::LedState
988 MackieControlProtocol::click_press (Mackie::Button&)
989 {
990         return none;
991 }
992 Mackie::LedState
993 MackieControlProtocol::click_release (Mackie::Button&)
994 {
995         return none;
996 }
997 Mackie::LedState
998 MackieControlProtocol::view_press (Mackie::Button&)
999 {
1000         set_view_mode (Mixer);
1001         return none;
1002 }
1003 Mackie::LedState
1004 MackieControlProtocol::view_release (Mackie::Button&)
1005 {
1006         return none;
1007 }