Base class for generic MIDI input
Base class for generic MIDI input. This class can be used to query the system about available MIDI input devices, and to open any MIDI input device and start receiving MIDI input messages. When using this class in a project, make your own MIDIInput class that inherits from this class, and overload the MidiInput(...) function. This function will be called whenever new MIDI data arrives. A program using this class might do something like this:
- GetListOfDevices(...) to get the display names of all available MIDI input Devices
- Open(deviceid) - Open a device
- Start() - Start receiving data
- Process all data in the overload MidiInput(...) function
- Stop() - Stop receiving data
- Close() - Close device
virtual ~OSC_MIDIInput()
void GetListOfDevices(OSC_StringArray &list, bool includeDeviceNumber = false)
int GetNumDevices()
OSC_ERR GetDevName(std::string &name)
OSC_ERR GetDevName(int deviceid, std:: string &name)
OSC_ERR GetDevID(const std::string &name, int &deviceid)
OSC_ERR Open(int deviceid)
OSC_ERR Close()
OSC_ERR Start()
OSC_ERR Stop()
virtual void MidiInput(OSC_MIDIMessage message)
MMRESULT GetLastMMError()
std::string GetLastMMErrorDescription()
alphabetic index hierarchy of classes