Implemented MidiClient partly.