#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"
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;
}
}
#ifndef NDEBUG
- DEBUG_STR_DECL(foo)
- DEBUG_STR_APPEND(foo,"sending ");
- DEBUG_STR_APPEND(foo, transmitting_timecode_time);
- DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
- out_stamp));
+ if (DEBUG_ENABLED(DEBUG::MTC)) {
+ DEBUG_STR_DECL(foo)
+ DEBUG_STR_APPEND(foo,"sending ");
+ DEBUG_STR_APPEND(foo, transmitting_timecode_time);
+ DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
+ out_stamp));
+ }
#endif
// Increment quarter frame counter