class midiWriter