I have the latest version of Garageband and I don't see how to export MIDI data. Previously you could go to Edit > Add to Loop Library, but it's no longer there.