WAV and MP3 files are larger and more difficult to edit than MIDI files. Since MIDI files are small and contain only the actual musical notes, they are the preferred format for writing and editing music electronically.