diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-19 23:41:53 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:29 -0500 |
commit | 62d2d86b88e01f3bef38f6a642e1a2174d043f21 (patch) | |
tree | 42c822c434565404c81420fc160020c6b70af29d | |
parent | 8a06e6735d058cb132ef6f75df550353e2e0b70e (diff) |
add a shadow port for the Push 2 port, to allow us to filter pads (note on/off) to other parts of Ardour
-rw-r--r-- | libs/surfaces/push2/push2.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index 3173444184..d1bf24f87b 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -145,6 +145,8 @@ Push2::open () _input_port = boost::dynamic_pointer_cast<AsyncMIDIPort>(_async_in).get(); _output_port = boost::dynamic_pointer_cast<AsyncMIDIPort>(_async_out).get(); + boost::dynamic_pointer_cast<AsyncMIDIPort> (_async_in)->add_shadow_port (string_compose (_("%1 Pads"), X_("Push 2"))); + connect_to_parser (); return 0; |