MidiPort: coding style improvements