This is way beyond my knowledge but I did see the following:  https://sourceforge.net/projects/midimap/

On Thu, Jan 21, 2021 at 10:21 AM Andrea paz via Cin <cin@lists.cinelerra-gg.org> wrote:
For windows there is "Bome MIDI translator Pro" which allows you to
bind the keys of any MIDI device to work in various NLEs.
https://www.bome.com/products/miditranslator
Is there something like this for Linux?
--
Cin mailing list
Cin@lists.cinelerra-gg.org
https://lists.cinelerra-gg.org/mailman/listinfo/cin