add a shadow port for the Push 2 port, to allow us to filter pads (note on/off) to other parts of Ardour

This commit is contained in:
Paul Davis 2016-06-19 23:41:53 -04:00
parent 8a06e6735d
commit 62d2d86b88

View file

@ -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;