An Overview of the MIDI Score-Playing Process


This section shows how a task uses the components of the MIDI environment to play back a MIDI score. A task typically follows these steps:

  1. Open the Audio and Math folios and initialize the Juggler. This opens the Audio and Music folios so that the Music library can use instruments, the audio clock, and math functions. It also sets up the Juggler to handle MIDI playback.

  2. Create a MIDI environment.


  3. Import a MIDI score file.


  4. Adjust score timing to match the MIDI song tempo. This step either sets the audio clock to an appropriate rate, or it scales MIDI timestamps for each score event.

  5. Play the score in a BumpJuggler() loop.

  6. Clean up.


The following sections discuss the details for each of these steps.