I think it’s doable with midi, and a midi processor that would map Perf macro’s CC to Keytrack CC.
Perf Macro CC > A4 midi out > midi processor > A4 midi in.
@guga’s Goliath
Event Processor Plus can do it too, but with fixed settings or sysex receive to change templates.