I made a minor fix/addition:
If you have a midi-out-program set, this will add it to the export.
Wasn’t able to find the main repo on github so this is just a floating patch.
edit: Also the CC codes (including volume etc.) as well as pitch-bend and aftertouch were all being mapped to CC 20-29, which is not where they belong. I couldn’t find the actual code-IDs in the API, so I ended up parsing the parameter-names. Ugly, but it does the trick.