O'Reilly logo

Audio Programming for Interactive Games by Martin D. Wilde

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6 Case study 1: Extending MIDI file performance – start me up!

Games have traditionally used Standard MIDI Files (SMFs) to play back music and background tracks. But the SMF specification was never designed for interactive use, and therefore lacks support for such key behaviors as looping, branching or arbitrary mid-file startup. This case study describes the musical demands behind and the technical implementation of a custom MIDI file format and playback system for interactive games.

MIDI recap

In the last chapter, we talked about the use of the Musical Instrument Digital Interface, or MIDI, in games. By MIDI, we really meant playing SMFs. The MIDI specification, available from the MIDI Manufacturers Association (MMA), defines a set of commands ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required