From 706eb6dacde7d66422f0333ef1baa4078ca10d59 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 13 May 2015 01:46:04 -0400 Subject: [PATCH] add Tracks specific handling of MMC Record Strobe, since Tracks has no concept of punch --- libs/ardour/session_midi.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc index 7becd9c667..19fb39ba14 100644 --- a/libs/ardour/session_midi.cc +++ b/libs/ardour/session_midi.cc @@ -43,6 +43,7 @@ #include "ardour/midi_port.h" #include "ardour/midi_track.h" #include "ardour/midi_ui.h" +#include "ardour/profile.h" #include "ardour/session.h" #include "ardour/slave.h" #include "ardour/ticker.h" @@ -129,6 +130,19 @@ Session::mmc_record_pause (MIDI::MachineControl &/*mmc*/) void Session::mmc_record_strobe (MIDI::MachineControl &/*mmc*/) { + if (Profile->get_trx()) { + + /* In Tracks Live, there is no concept of punch, so we just + treat RecordStrobe like RecordPause. This violates the MMC + specification. + */ + + if (Config->get_mmc_control()) { + maybe_enable_record(); + } + return; + } + if (!Config->get_mmc_control() || (_step_editors > 0)) { return; } -- 2.30.2