2012-04-09 13:48:16 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2006,2007 John Anderson
|
|
|
|
Copyright (C) 2012 Paul Davis
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
|
2012-04-26 12:18:03 -04:00
|
|
|
#include <algorithm>
|
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
#include "pbd/memento_command.h"
|
|
|
|
|
2012-04-10 22:54:25 -04:00
|
|
|
#include "ardour/debug.h"
|
2012-04-09 13:48:16 -04:00
|
|
|
#include "ardour/session.h"
|
|
|
|
#include "ardour/route.h"
|
|
|
|
#include "ardour/location.h"
|
|
|
|
#include "ardour/rc_configuration.h"
|
|
|
|
|
|
|
|
#include "mackie_control_protocol.h"
|
2012-04-10 10:27:44 -04:00
|
|
|
#include "surface.h"
|
2012-06-09 15:06:52 -04:00
|
|
|
#include "fader.h"
|
2012-04-09 13:48:16 -04:00
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
#include "i18n.h"
|
|
|
|
|
2012-04-09 13:48:16 -04:00
|
|
|
/* handlers for all buttons, broken into a separate file to avoid clutter in
|
|
|
|
* mackie_control_protocol.cc
|
|
|
|
*/
|
|
|
|
|
|
|
|
using namespace Mackie;
|
|
|
|
using namespace ARDOUR;
|
2012-04-10 22:54:25 -04:00
|
|
|
using namespace PBD;
|
2012-04-09 14:53:51 -04:00
|
|
|
using std::string;
|
2012-04-09 13:48:16 -04:00
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::shift_press (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state |= MODIFIER_SHIFT;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::shift_release (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state &= ~MODIFIER_SHIFT;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::option_press (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state |= MODIFIER_OPTION;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::option_release (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state &= ~MODIFIER_OPTION;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::control_press (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state |= MODIFIER_CONTROL;
|
2012-04-11 21:14:43 -04:00
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("CONTROL Press: modifier state now set to %1\n", _modifier_state));
|
2012-04-09 13:48:16 -04:00
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::control_release (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state &= ~MODIFIER_CONTROL;
|
2012-04-11 21:14:43 -04:00
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("CONTROL Release: modifier state now set to %1\n", _modifier_state));
|
2012-04-09 13:48:16 -04:00
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cmd_alt_press (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state |= MODIFIER_CMDALT;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cmd_alt_release (Button &)
|
|
|
|
{
|
|
|
|
_modifier_state &= ~MODIFIER_CMDALT;
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
LedState
|
|
|
|
MackieControlProtocol::left_press (Button &)
|
|
|
|
{
|
|
|
|
Sorted sorted = get_sorted_routes();
|
2012-04-26 12:18:03 -04:00
|
|
|
uint32_t strip_cnt = n_strips ();
|
2012-04-10 20:10:31 -04:00
|
|
|
|
2012-04-10 22:54:25 -04:00
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank left with current initial = %1 nstrips = %2 tracks/busses = %3\n",
|
2012-06-13 11:38:15 -04:00
|
|
|
_current_initial_bank, strip_cnt, sorted.size()));
|
2012-04-10 22:54:25 -04:00
|
|
|
|
2012-04-27 16:35:45 -04:00
|
|
|
if (_current_initial_bank > strip_cnt) {
|
|
|
|
switch_banks (_current_initial_bank - strip_cnt);
|
|
|
|
} else {
|
|
|
|
switch_banks (0);
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
2012-04-27 16:35:45 -04:00
|
|
|
|
|
|
|
return on;
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::left_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::right_press (Button &)
|
|
|
|
{
|
2012-04-09 15:47:06 -04:00
|
|
|
Sorted sorted = get_sorted_routes();
|
2012-04-10 10:27:44 -04:00
|
|
|
uint32_t strip_cnt = n_strips();
|
2012-04-26 12:18:03 -04:00
|
|
|
uint32_t route_cnt = sorted.size();
|
2012-04-09 15:47:06 -04:00
|
|
|
|
2012-04-10 22:54:25 -04:00
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank right with current initial = %1 nstrips = %2 tracks/busses = %3\n",
|
2012-04-27 16:35:45 -04:00
|
|
|
_current_initial_bank, strip_cnt, route_cnt));
|
2012-04-10 22:54:25 -04:00
|
|
|
|
2012-04-27 16:35:45 -04:00
|
|
|
uint32_t new_initial = std::min (_current_initial_bank + strip_cnt, route_cnt - 1);
|
|
|
|
switch_banks (new_initial);
|
2012-04-26 12:18:03 -04:00
|
|
|
|
2012-04-27 16:35:45 -04:00
|
|
|
return on;
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::right_release (Button &)
|
|
|
|
{
|
|
|
|
if (_zoom_mode) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_left_press (Button& )
|
|
|
|
{
|
|
|
|
if (_zoom_mode) {
|
|
|
|
|
|
|
|
if (_modifier_state & MODIFIER_OPTION) {
|
|
|
|
/* reset selected tracks to default vertical zoom */
|
|
|
|
} else {
|
|
|
|
ZoomOut (); /* EMIT SIGNAL */
|
|
|
|
}
|
2012-04-11 18:47:02 -04:00
|
|
|
} else {
|
|
|
|
float page_fraction;
|
|
|
|
if (_modifier_state == MODIFIER_CONTROL) {
|
|
|
|
page_fraction = 1.0;
|
|
|
|
} else if (_modifier_state == MODIFIER_OPTION) {
|
|
|
|
page_fraction = 0.1;
|
|
|
|
} else if (_modifier_state == MODIFIER_SHIFT) {
|
|
|
|
page_fraction = 2.0;
|
|
|
|
} else {
|
|
|
|
page_fraction = 0.25;
|
|
|
|
}
|
|
|
|
|
2012-04-11 18:57:01 -04:00
|
|
|
ScrollTimeline (-page_fraction);
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_left_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_right_press (Button& )
|
|
|
|
{
|
|
|
|
if (_zoom_mode) {
|
|
|
|
|
|
|
|
if (_modifier_state & MODIFIER_OPTION) {
|
|
|
|
/* reset selected tracks to default vertical zoom */
|
|
|
|
} else {
|
|
|
|
ZoomIn (); /* EMIT SIGNAL */
|
|
|
|
}
|
2012-04-11 18:47:02 -04:00
|
|
|
} else {
|
|
|
|
float page_fraction;
|
|
|
|
if (_modifier_state == MODIFIER_CONTROL) {
|
|
|
|
page_fraction = 1.0;
|
|
|
|
} else if (_modifier_state == MODIFIER_OPTION) {
|
|
|
|
page_fraction = 0.1;
|
|
|
|
} else if (_modifier_state == MODIFIER_SHIFT) {
|
|
|
|
page_fraction = 2.0;
|
|
|
|
} else {
|
|
|
|
page_fraction = 0.25;
|
|
|
|
}
|
2012-04-09 14:53:51 -04:00
|
|
|
|
2012-04-11 18:47:02 -04:00
|
|
|
ScrollTimeline (page_fraction);
|
|
|
|
}
|
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_right_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_up_press (Button&)
|
|
|
|
{
|
|
|
|
if (_zoom_mode) {
|
2012-04-11 18:32:02 -04:00
|
|
|
|
2012-04-11 20:27:25 -04:00
|
|
|
if (_modifier_state & MODIFIER_CONTROL) {
|
2012-04-11 18:32:02 -04:00
|
|
|
VerticalZoomInSelected (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
} else {
|
2012-04-11 18:32:02 -04:00
|
|
|
VerticalZoomInAll (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
2012-04-25 23:46:18 -04:00
|
|
|
} else {
|
|
|
|
StepTracksUp (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_up_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_down_press (Button&)
|
|
|
|
{
|
|
|
|
if (_zoom_mode) {
|
|
|
|
if (_modifier_state & MODIFIER_OPTION) {
|
2012-04-11 18:32:02 -04:00
|
|
|
VerticalZoomOutSelected (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
} else {
|
2012-04-11 18:32:02 -04:00
|
|
|
VerticalZoomOutAll (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
2012-04-25 23:46:18 -04:00
|
|
|
} else {
|
|
|
|
StepTracksDown (); /* EMIT SIGNAL */
|
2012-04-09 14:53:51 -04:00
|
|
|
}
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cursor_down_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::channel_left_press (Button &)
|
|
|
|
{
|
|
|
|
Sorted sorted = get_sorted_routes();
|
2012-04-10 10:27:44 -04:00
|
|
|
if (sorted.size() > n_strips()) {
|
2012-04-09 14:53:51 -04:00
|
|
|
prev_track();
|
|
|
|
return on;
|
|
|
|
} else {
|
|
|
|
return flashing;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::channel_left_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::channel_right_press (Button &)
|
|
|
|
{
|
|
|
|
Sorted sorted = get_sorted_routes();
|
2012-04-10 10:27:44 -04:00
|
|
|
if (sorted.size() > n_strips()) {
|
2012-04-09 14:53:51 -04:00
|
|
|
next_track();
|
|
|
|
return on;
|
|
|
|
} else {
|
|
|
|
return flashing;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::channel_right_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
2012-04-09 15:47:06 -04:00
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::zoom_press (Mackie::Button &)
|
|
|
|
{
|
|
|
|
_zoom_mode = !_zoom_mode;
|
|
|
|
return (_zoom_mode ? on : off);
|
|
|
|
}
|
|
|
|
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::zoom_release (Mackie::Button &)
|
|
|
|
{
|
|
|
|
return (_zoom_mode ? on : off);
|
|
|
|
}
|
|
|
|
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::scrub_press (Mackie::Button &)
|
|
|
|
{
|
2012-04-22 13:37:52 -04:00
|
|
|
if (!surfaces.empty()) {
|
|
|
|
surfaces.front()->next_jog_mode ();
|
|
|
|
}
|
|
|
|
return none;
|
2012-04-09 15:47:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::scrub_release (Mackie::Button &)
|
|
|
|
{
|
2012-04-22 13:37:52 -04:00
|
|
|
return none;
|
2012-04-09 15:47:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::undo_press (Button&)
|
|
|
|
{
|
|
|
|
if (_modifier_state & MODIFIER_SHIFT) {
|
|
|
|
Redo(); /* EMIT SIGNAL */
|
|
|
|
} else {
|
|
|
|
Undo(); /* EMIT SIGNAL */
|
|
|
|
}
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::undo_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::redo_press (Button&)
|
|
|
|
{
|
|
|
|
Redo(); /* EMIT SIGNAL */
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::redo_release (Button&)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::drop_press (Button &)
|
|
|
|
{
|
|
|
|
session->remove_last_capture();
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::drop_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::save_press (Button &)
|
|
|
|
{
|
|
|
|
session->save_state ("");
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::save_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::timecode_beats_press (Button &)
|
|
|
|
{
|
|
|
|
switch (_timecode_type) {
|
|
|
|
case ARDOUR::AnyTime::BBT:
|
|
|
|
_timecode_type = ARDOUR::AnyTime::Timecode;
|
|
|
|
break;
|
|
|
|
case ARDOUR::AnyTime::Timecode:
|
|
|
|
_timecode_type = ARDOUR::AnyTime::BBT;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
update_timecode_beats_led();
|
|
|
|
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::timecode_beats_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
/////////////////////////////////////
|
|
|
|
// Functions
|
|
|
|
/////////////////////////////////////
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::marker_press (Button &)
|
|
|
|
{
|
|
|
|
string markername;
|
2012-04-11 16:18:01 -04:00
|
|
|
|
|
|
|
session->locations()->next_available_name (markername,"mcu");
|
|
|
|
add_marker (markername);
|
|
|
|
|
2012-04-09 14:53:51 -04:00
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::marker_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
2012-04-09 13:48:16 -04:00
|
|
|
/////////////////////////////////////
|
|
|
|
// Transport Buttons
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::frm_left_press (Button &)
|
|
|
|
{
|
|
|
|
// can use first_mark_before/after as well
|
|
|
|
unsigned long elapsed = _frm_left_last.restart();
|
|
|
|
|
2013-01-17 08:19:16 -05:00
|
|
|
framepos_t pos = session->locations()->first_mark_before (session->transport_frame());
|
|
|
|
|
2012-04-09 13:48:16 -04:00
|
|
|
// allow a quick double to go past a previous mark
|
2013-01-17 08:19:16 -05:00
|
|
|
if (session->transport_rolling() && elapsed < 500 && pos >= 0) {
|
|
|
|
framepos_t pos_two_back = session->locations()->first_mark_before (pos);
|
|
|
|
if (pos_two_back >= 0) {
|
|
|
|
pos = pos_two_back;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// move to the location, if it's valid
|
2013-01-17 08:19:16 -05:00
|
|
|
if (pos >= 0) {
|
|
|
|
session->request_locate (pos, session->transport_rolling());
|
2012-04-21 22:15:24 -04:00
|
|
|
} else {
|
2013-01-17 08:19:16 -05:00
|
|
|
session->request_locate (session->current_start_frame(), session->transport_rolling());
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::frm_left_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::frm_right_press (Button &)
|
|
|
|
{
|
|
|
|
// can use first_mark_before/after as well
|
2013-01-17 08:19:16 -05:00
|
|
|
framepos_t pos = session->locations()->first_mark_after (session->transport_frame());
|
2012-04-09 13:48:16 -04:00
|
|
|
|
2013-01-17 08:19:16 -05:00
|
|
|
if (pos >= 0) {
|
|
|
|
session->request_locate (pos, session->transport_rolling());
|
2012-04-21 22:15:24 -04:00
|
|
|
} else {
|
2013-01-17 08:19:16 -05:00
|
|
|
session->request_locate (session->current_end_frame(), session->transport_rolling());
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::frm_right_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::stop_press (Button &)
|
|
|
|
{
|
2012-04-10 22:30:35 -04:00
|
|
|
transport_stop ();
|
2012-04-09 13:48:16 -04:00
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::stop_release (Button &)
|
|
|
|
{
|
|
|
|
return session->transport_stopped();
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::play_press (Button &)
|
|
|
|
{
|
2012-04-11 21:51:57 -04:00
|
|
|
/* if we're already rolling at normal speed, and we're pressed
|
2012-04-11 16:25:14 -04:00
|
|
|
again, jump back to where we started last time
|
|
|
|
*/
|
|
|
|
|
2012-04-26 17:57:47 -04:00
|
|
|
transport_play (session->transport_speed() == 1.0);
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::play_release (Button &)
|
|
|
|
{
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::record_press (Button &)
|
|
|
|
{
|
2012-04-10 22:30:35 -04:00
|
|
|
rec_enable_toggle ();
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::record_release (Button &)
|
|
|
|
{
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::rewind_press (Button &)
|
|
|
|
{
|
2012-04-21 22:15:24 -04:00
|
|
|
if (_modifier_state == MODIFIER_CONTROL) {
|
|
|
|
goto_start ();
|
|
|
|
} else {
|
|
|
|
rewind ();
|
|
|
|
}
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::rewind_release (Button &)
|
|
|
|
{
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::ffwd_press (Button &)
|
|
|
|
{
|
2012-04-21 22:15:24 -04:00
|
|
|
if (_modifier_state == MODIFIER_CONTROL) {
|
|
|
|
goto_end();
|
|
|
|
} else {
|
|
|
|
ffwd ();
|
|
|
|
}
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::ffwd_release (Button &)
|
|
|
|
{
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::loop_press (Button &)
|
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
if (_modifier_state & MODIFIER_CONTROL) {
|
|
|
|
set_view_mode (Loop);
|
|
|
|
return on;
|
|
|
|
} else {
|
|
|
|
session->request_play_loop (!session->get_play_loop());
|
|
|
|
return none;
|
|
|
|
}
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::loop_release (Button &)
|
|
|
|
{
|
2012-04-10 23:24:20 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::punch_in_press (Button &)
|
|
|
|
{
|
|
|
|
bool const state = !session->config.get_punch_in();
|
|
|
|
session->config.set_punch_in (state);
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::punch_in_release (Button &)
|
|
|
|
{
|
|
|
|
return session->config.get_punch_in();
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::punch_out_press (Button &)
|
|
|
|
{
|
|
|
|
bool const state = !session->config.get_punch_out();
|
|
|
|
session->config.set_punch_out (state);
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::punch_out_release (Button &)
|
|
|
|
{
|
|
|
|
return session->config.get_punch_out();
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::home_press (Button &)
|
|
|
|
{
|
|
|
|
session->goto_start();
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::home_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::end_press (Button &)
|
|
|
|
{
|
|
|
|
session->goto_end();
|
|
|
|
return on;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::end_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::clicking_press (Button &)
|
|
|
|
{
|
|
|
|
bool state = !Config->get_clicking();
|
|
|
|
Config->set_clicking (state);
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::clicking_release (Button &)
|
|
|
|
{
|
|
|
|
return Config->get_clicking();
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState MackieControlProtocol::global_solo_press (Button &)
|
|
|
|
{
|
|
|
|
bool state = !session->soloing();
|
|
|
|
session->set_solo (session->get_routes(), state);
|
|
|
|
return state;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState MackieControlProtocol::global_solo_release (Button &)
|
|
|
|
{
|
|
|
|
return session->soloing();
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::enter_press (Button &)
|
|
|
|
{
|
|
|
|
Enter(); /* EMIT SIGNAL */
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::enter_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
2012-04-16 09:06:39 -04:00
|
|
|
|
2012-04-09 13:48:16 -04:00
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F1_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F1_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F2_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F2_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F3_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F3_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F4_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F4_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F5_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F5_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F6_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F6_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F7_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F7_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F8_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-10 22:30:35 -04:00
|
|
|
CloseDialog (); /* EMIT SIGNAL */
|
2012-04-09 13:48:16 -04:00
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::F8_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
2012-04-10 22:30:35 -04:00
|
|
|
|
|
|
|
/* UNIMPLEMENTED */
|
|
|
|
|
2012-04-09 13:48:16 -04:00
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::io_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::io_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::sends_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
set_view_mode (Sends);
|
|
|
|
return on;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::sends_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::pan_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::pan_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::plugin_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::plugin_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::eq_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
set_view_mode (EQ);
|
|
|
|
return on;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::eq_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::dyn_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
set_view_mode (Dynamics);
|
|
|
|
return on;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::dyn_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::flip_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2013-08-24 11:45:31 -04:00
|
|
|
if (_flip_mode != Normal) {
|
|
|
|
set_flip_mode (Normal);
|
|
|
|
} else {
|
|
|
|
set_flip_mode (Mirror);
|
|
|
|
}
|
|
|
|
return ((_flip_mode != Normal) ? on : off);
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::flip_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
2012-04-11 14:51:01 -04:00
|
|
|
return none;
|
2012-04-09 13:48:16 -04:00
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::edit_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::edit_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::name_value_press (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
2012-04-10 22:30:35 -04:00
|
|
|
MackieControlProtocol::name_value_release (Button &)
|
2012-04-09 13:48:16 -04:00
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F9_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F9_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F10_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F10_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F11_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F11_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F12_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F12_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F13_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F13_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F14_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F14_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F15_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F15_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F16_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::F16_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::on_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::on_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::rec_ready_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::rec_ready_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::touch_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::touch_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cancel_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::cancel_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::mixer_press (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::mixer_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::user_a_press (Button &)
|
|
|
|
{
|
2012-04-11 21:51:57 -04:00
|
|
|
transport_play (session->transport_speed() == 1.0);
|
2012-04-09 13:48:16 -04:00
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::user_a_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::user_b_press (Button &)
|
|
|
|
{
|
2012-04-11 21:51:57 -04:00
|
|
|
transport_stop();
|
2012-04-09 13:48:16 -04:00
|
|
|
return off;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::user_b_release (Button &)
|
|
|
|
{
|
|
|
|
return off;
|
|
|
|
}
|
2012-04-15 09:28:45 -04:00
|
|
|
|
2012-06-09 15:06:52 -04:00
|
|
|
LedState
|
|
|
|
MackieControlProtocol::master_fader_touch_press (Mackie::Button &)
|
|
|
|
{
|
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_press\n");
|
|
|
|
|
|
|
|
Fader* master_fader = surfaces.front()->master_fader();
|
|
|
|
|
|
|
|
boost::shared_ptr<AutomationControl> ac = master_fader->control ();
|
|
|
|
|
|
|
|
master_fader->set_in_use (true);
|
|
|
|
master_fader->start_touch (transport_frame());
|
|
|
|
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
LedState
|
|
|
|
MackieControlProtocol::master_fader_touch_release (Mackie::Button &)
|
|
|
|
{
|
|
|
|
DEBUG_TRACE (DEBUG::MackieControl, "MackieControlProtocol::master_fader_touch_release\n");
|
|
|
|
|
|
|
|
Fader* master_fader = surfaces.front()->master_fader();
|
|
|
|
|
|
|
|
master_fader->set_in_use (false);
|
|
|
|
master_fader->stop_touch (transport_frame(), true);
|
|
|
|
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
|
2012-04-15 09:28:45 -04:00
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::snapshot_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::snapshot_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::read_press (Mackie::Button&)
|
|
|
|
{
|
2012-06-01 08:56:20 -04:00
|
|
|
_metering_active = !_metering_active;
|
|
|
|
notify_metering_state_changed ();
|
|
|
|
return _metering_active;
|
2012-04-15 09:28:45 -04:00
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::read_release (Mackie::Button&)
|
|
|
|
{
|
2012-06-01 08:56:20 -04:00
|
|
|
return _metering_active;
|
2012-04-15 09:28:45 -04:00
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::write_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::write_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::fdrgroup_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::fdrgroup_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::clearsolo_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::clearsolo_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::track_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::track_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::send_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::send_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::miditracks_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::miditracks_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::inputs_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::inputs_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::audiotracks_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::audiotracks_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::audioinstruments_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::audioinstruments_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::aux_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::aux_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::busses_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::busses_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::outputs_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::outputs_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::user_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::user_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::trim_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::trim_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::latch_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::latch_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::grp_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::grp_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::nudge_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::nudge_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::replace_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::replace_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::click_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::click_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
2012-04-15 09:41:20 -04:00
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::view_press (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|
|
|
|
Mackie::LedState
|
|
|
|
MackieControlProtocol::view_release (Mackie::Button&)
|
|
|
|
{
|
|
|
|
return none;
|
|
|
|
}
|