From d252beb807095b390ba691d5aedec229d720aa17 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Oct 2021 16:53:52 -0600 Subject: [PATCH] triggerbox: add MIDI triggers when asked --- libs/ardour/triggerbox.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index b93c63f354..69dfccf9b2 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1211,6 +1211,10 @@ TriggerBox::TriggerBox (Session& s, DataType dt) for (uint64_t n = 0; n < default_triggers_per_box; ++n) { all_triggers.push_back (new AudioTrigger (n, *this)); } + } else { + for (uint64_t n = 0; n < default_triggers_per_box; ++n) { + all_triggers.push_back (new MIDITrigger (n, *this)); + } } /* MIDI note numbers from Ableton Push2 in chromatic mode */