diff --git a/libs/ardour/session_bundles.cc b/libs/ardour/session_bundles.cc index 51de2d9c47..8af2ae92f7 100644 --- a/libs/ardour/session_bundles.cc +++ b/libs/ardour/session_bundles.cc @@ -33,6 +33,7 @@ #include "pbd/i18n.h" +#include "ardour/async_midi_port.h" #include "ardour/audioengine.h" #include "ardour/bundle.h" #include "ardour/session.h" @@ -120,6 +121,12 @@ Session::setup_bundles () ); } + /* now add virtual Vkeybd, compare to PortGroupList::gather */ + if (_midi_ports) { + boost::shared_ptr ap = boost::dynamic_pointer_cast (vkbd_output_port ()); + inputs[DataType::MIDI].push_back (AudioEngine::instance()->make_port_name_non_relative (ap->name ())); + } + /* Create a set of Bundle objects that map to the physical I/O currently available. We create both mono and stereo bundles, so that the common cases of mono