synthImprov is an environment which handles MIDI input/output between the computer and an external MIDI synthesizer/keyboard. Example uses of the environment are given in the synthImprov examples directory. There is currently one Windows 95 console interface for the synthImprov environment which is described further below.
There are two global variables accessible in the synthImprov environment:
Shown below is a schematic of the device connections inteneded for the synthImprov environment. Note that the global object synth listed above represents a MIDI synthesizer/keyboard as shown in the figure below.
#include "synthImprov.h" void description(void) { } void initialization(void) { } void finishup(void) { } void mainloopalgorithms(void) { } void keyboardchar(int key) { }
Here is a template file which you can use to create a synthImprov program: synthTemplate.cpp
The default console interface for the synthImprov environment can be loaded into the synthImprov program by adding the preprocessor line:
#include "synthImprov.h"somewhere near the top of your synthImprov program. Described below are the basic commands defined by in the console interface. Note that all commands are defined with characters which use the shift key.
"?" | Print Main list of interface commands |
"C" | Set the apparent speed of the CPU (for timing functions) |
"D" | Display user-provided description |
"I" | Set MIDI input port for synthesizer |
"M" | Print more commands that are not shown by the '?' command. |
"O" | Set MIDI output port for synthesizer |
"Q" | Quit the program |
"S" | Silence the synthesizer |
"X" | Toggle MIDI output trace |
"Y" | Toggle MIDI input trace |