Notes
This application provides a simple interface around the MIDICTRL DLL. Most of the smarts is in the DLL and this application just calls the functions inside the DLL.
The only menu item of real importance is the Midi item which contains two sub items
| Settings | Detects available MIDI devices and allows selection of them |
| System Exclusive | Allows communication with the MIDI device |
The Settings dialog checks that the device can be opened when the OK button is pressed. If the port cannot be opened then a message to that effect will be displayed.
The System Exclusive dialog has two major sections, the MIDI In portion (handling the MIDI In buffer) and the MIDI Out portion (handling the MIDI Out buffer)
MIDI In
| Format: |
| Allows the viewing of the current buffer contents in either Ascii or Hex type format |
| nn bytes in buffer |
| Contains the current size in bytes of the buffer contents |
| Receive |
| 1. Clears the contents of the MIDI In buffer, and begins recording |
| 2. Sends the contents of the MIDI Out buffer |
| 3. Waits 2 seconds and then stops recording |
| 4. Displays the new contents of the MIDI In buffer |
| Save |
| Prompts for a file name and path and saves the contents of the MIDI In buffer to that file |
MIDI Out
| Format: |
| Allows the viewing of the current buffer contents in either Ascii or Hex type format |
| nn bytes in buffer |
| Contains the current size in bytes of the buffer contents |
| Load |
| Prompts for a file name and path and loads the contents of the file into the MIDI Out buffer |
| Send |
| Sends the data in the MIDI Out buffer to the current MIDI Out device |
| Clear |
| Clears the contents of the MIDI Out buffer |
The contents of the MIDI Out buffer can be edited while in the Hex mode by editing the values shown in the text box. These new values will then be sent to the MIDI device when the Receive or Send button is clicked. Note that no error checking is currently performed on this text box, so you might want to make sure that you enter only valid hex characters.