summaryrefslogtreecommitdiff
path: root/libs/surfaces/generic_midi/midifunction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/surfaces/generic_midi/midifunction.cc')
-rw-r--r--libs/surfaces/generic_midi/midifunction.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/surfaces/generic_midi/midifunction.cc b/libs/surfaces/generic_midi/midifunction.cc
index e9e875b702..1f3535f22c 100644
--- a/libs/surfaces/generic_midi/midifunction.cc
+++ b/libs/surfaces/generic_midi/midifunction.cc
@@ -58,6 +58,8 @@ MIDIFunction::setup (GenericMidiControlProtocol& ui, const std::string& invokabl
_function = TransportEnd;
} else if (strcasecmp (_invokable_name.c_str(), "loop-toggle") == 0) {
_function = TransportLoopToggle;
+ } else if (strcasecmp (_invokable_name.c_str(), "toggle-rec-enable") == 0) {
+ _function = TransportRecordToggle;
} else if (strcasecmp (_invokable_name.c_str(), "rec-enable") == 0) {
_function = TransportRecordEnable;
} else if (strcasecmp (_invokable_name.c_str(), "rec-disable") == 0) {
@@ -146,6 +148,11 @@ MIDIFunction::execute ()
DEBUG_TRACE (DEBUG::GenericMidi, "Function: loop_toggle\n");
break;
+ case TransportRecordToggle:
+ _ui->rec_enable_toggle ();
+ DEBUG_TRACE (DEBUG::GenericMidi, "Function: toggle_record_enable\n");
+ break;
+
case TransportRecordEnable:
_ui->set_record_enable (true);
DEBUG_TRACE (DEBUG::GenericMidi, "Function: set_record_enable = true\n");