Are you on Mac?
You could use IAC Driver
And with scripting you can Inject a Midi Message into the Local GP Port.
InjectMidiEvent(<physicalDeviceName : String>, <m : MidiMessage>)
InjectMidiEventViaRigManager(<rmDeviceAliasName : MidiInDeviceAlias>, <m : MidiMessage>)