MIDI output to external hardware

Is it possible to get a MIDI output from MIDI Guitar on an iPad to external hardware (assuming the availability of either a USB cable adaptor or a MIDI cable adaptor) e.g. to drive a MIDI-based external sound module? (I tried searching for this in the forums; but the results are cluttered with stuff irrelevant to me concerned with questions to do with the audio output or getting MIDI output to another app on the same iOS device),


if you connect an audiointerface with a midi in/out, these midi in and out are visible for any app on the ios device, also for MG. Dedicated usb midi cables are often not working on ios: the ones on audiointerfaces allways work fine.
You ofcourse need the “midi outputs” IAP in MG for this