use external midiwrite