Beginning of MidiWriter class written