MIDI is shorthand for “Musical Instrument Digital Interface,” and is a standard protocol for describing electronic music. In this chapter I will describe how to convert an abstract performance as defined in Chapter 21 into a MIDI file that can be played on any modern PC with a standard sound card.
As mentioned in Chapter 20, Haskore is a library for computer music that is more extensive than MDL, and I will borrow much of the basic MIDI data types defined there, as well as the low-level function outputMidiFile, to be described later.
22.1 An Introduction to MIDI
MIDI is a standard adopted ...