by Michael Barnathan (11 Submissions)
Category: DirectX
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Did you listen to a MIDI file on two different computers and wonder why yours sounded much worse(or better)? This code, using DirectMusic, will play ANY MID file in a way you've never heard it before, in exactly the way the composer wanted it to sound! This program has a media player look, tells you time signature, length of the music, tempo, and even has a slider for the play time! The DirectX initialization code was taken from the Microsoft VB example. All other code is mine. If anyone would like to help me get a better "media player" look, or help me with buffering/seeking through a music file, email [email protected]
Assumes
You need the DirectX 7 SDK to run this code. It is available for free at www.microsoft.com/directx. Have fun downloading it, it's a 122 MB file :)