In our last episode, I asked questions here about implementing simple MIDI capabilities, and also about handling simple controls.
All of this has been resolved. I present you the results of my research, a small MIDI testbed program which may be interesting to some of you who are working on related issues. Source and executable attached below.
It's a simple testbed that allows you to select a MIDI device installed on your computer and play a simple tune through it, with controls to set the volume, tempo, "velocity" and the MIDI "patch" (the voice used to render the sound, from a list of the 128 available "patches"). It has "go" and "stop" buttons. (You might recognize the tune, which is a couple variations on a well-known 4-note American TV series theme.)
I'm particularly fond of how easily I was able to implement my homemade "dialog", which is nothing more than a collection of controls (trackbars, comboboxes, etc.) simply placed within the client area of my program's main window. Very simple to do, all driven by a structure, so little or no code need be added for new controls.
Anyhow, enjoy and let us know what you think. (Couldn't stop the comments if I wanted to!)
Note: Don't download this attachment (left some things out). Use the one in the following reply.
- Little C 4 me