You can remove the connector and terminate the wires on a MIDI encoder board such as this:
https://www.orgautomatech.com/epages/3b85d6ba-28b0-11e2-b53b-000d609a287c.sf/en_GB/?ObjectPath=/Shops/3b85d6ba-28b0-11e2-b53b-000d609a287c/Products/K2M32
which is also available in a DIY kit version (ready to solder):
https://www.orgautomatech.com/epages/3b85d6ba-28b0-11e2-b53b-000d609a287c.sf/en_GB/?ViewObjectPath=%2FShops%2F3b85d6ba-28b0-11e2-b53b-000d609a287c%2FProducts%2FMidi2Org_32%2FSubProducts%2FMidi2Org_32-0002
or:
https://www.midi-hardware.com/index.php?section=prod_info&product=BBSP
along with a master controller.
https://www.midi-hardware.com/index.php?section=prod_info&product=MRG2&R2=USD
Rgds,
Ed