Chapter 15. Playing MIDI Music
Jaws is probably my favorite movie of all time, and few people who have seen the movie will ever forget the nerve-racking music used to communicate that the shark was about to strike. This is just one example of how simple music was able to establish a very specific mood. Video games are capable of using music in the same way. In fact, seeing as how movies are generally capable of being more expressive visually, it becomes more important for games to take advantage of music as a means of reinforcing a mood or enhancing the reality of a virtual environment. MIDI music is one of the best ways to incorporate music into games, and this hour shows you exactly how to play MIDI music with a relatively small amount of code. ...
Get Sams Teach Yourself Game Programming in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.