diff options
author | Robin Gareus <robin@gareus.org> | 2019-10-18 03:50:52 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-10-18 03:50:52 +0200 |
commit | ebb89ba80522448527f0bd3f9efdb810d8df8506 (patch) | |
tree | 78a0b951f0d700e1ba2dcbbc661a638b37b49b82 /gtk2_ardour/port_group.cc | |
parent | f961fd46874d407c6569e0b6f9ddbede09900b3a (diff) |
Super basic Virtual-Keyboard UI
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r-- | gtk2_ardour/port_group.cc | 12 |
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)) { |