Midi: Remove some duplicated code Introduced new private read/write_midi_settings() and used them in MidiSettingsView and SoftSynth.