summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r--gtk2_ardour/port_group.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc
index 7604a29eb8..ca3a73643b 100644
--- a/gtk2_ardour/port_group.cc
+++ b/gtk2_ardour/port_group.cc
@@ -489,6 +489,18 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
}
}
+ /* virtual keyboard */
+ if ((type == DataType::MIDI || type == DataType::NIL)) {
+ AudioEngine* ae = AudioEngine::instance();
+ if (!inputs) {
+ boost::shared_ptr<Bundle> vm (new Bundle (_("Virtual MIDI"), inputs));
+ vm->add_channel (
+ _("Virtual Keyboard"), DataType::MIDI, ae->make_port_name_non_relative (session->vkbd_output_port()->name())
+ );
+ program->add_bundle (vm);
+ }
+ }
+
/* our sync ports */
if ((type == DataType::MIDI || type == DataType::NIL)) {