Imported saveGlobalMIDI.py from StagecraftOS repo

use this a starting point