diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-09 18:25:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-09 18:25:36 +0200 |
commit | b5e1eb7538b9119e5b3abfb45d2ddf9f86331ffa (patch) | |
tree | e3b6e0f02e1cb172c18ecb6a3633858323b6369b /gtk2_ardour/mixer_strip.cc | |
parent | 9e2251a61959a006c6ac272514d61c26ebb2ecaf (diff) |
Migrate PC dialog to RouteUI, midnam handing to RTAV.
This allows to to bring up the PC dialog from Editor/Editor-Mixer & Mixer
for both MIDI Tracks as well as MIDI Busses.
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 21d6a5007f..6d127262b3 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1738,6 +1738,11 @@ MixerStrip::build_route_ops_menu () items.push_back (MenuElem (_("Pin Connections..."), sigc::mem_fun (*this, &RouteUI::manage_pins))); } + if (boost::dynamic_pointer_cast<MidiTrack>(_route) || _route->the_instrument ()) { + items.push_back (MenuElem (_("Patch Selector..."), + sigc::mem_fun(*this, &RouteUI::select_midi_patch))); + } + if (_route->the_instrument () && _route->the_instrument ()->output_streams().n_audio() > 2) { // TODO ..->n_audio() > 1 && separate_output_groups) hard to check here every time. items.push_back (MenuElem (_("Fan out to Busses"), sigc::bind (sigc::mem_fun (*this, &RouteUI::fan_out), true, true))); |