Export MIDI Keyswitches from Expression Maps

If I use Expression Maps that contain all MIDI keyswitches, how can I export the MIDI keyswitches in a MIDI file?