In file OSC_MIDIOutput.h:

class OSC_MIDIOutput



This class does MIDI output

Public Methods

OSC_MIDIOutput()
virtual ~OSC_MIDIOutput()
void GetListOfDevices(OSC_StringArray &list, bool includeDeviceNumber = false)
Returns a list of installed MIDI input devices
int GetNumDevices()
Returns the number of installed devices
OSC_ERR GetDevName(std::string &name)
Get the name of the current open device
OSC_ERR GetDevName(int deviceid, std:: string &name)
Get the name of the specified device (number)
OSC_ERR GetDevID(const std::string &name, int &deviceid)
Get the device id of the specified device (name)
OSC_ERR Open(int deviceid)
Opens the device. Must be called before calling SendMIDIMessage(...).
OSC_ERR Close()
Closes the device
void SendMIDIMessage(OSC_MIDIDataShort status, OSC_MIDIDataShort data1, OSC_MIDIDataShort data2)
Sends a MIDI message
void SendMIDIMessage(const OSC_MIDIMessage &message)
Sends a MIDI message
MMRESULT GetLastMMError()
Returns the latest error (if any) from the Windows MultiMedia system
std::string GetLastMMErrorDescription()
Returns the latest error in text format

Documentation

This class does MIDI output. It lets the user get a list of available MIDI output devices, open a MIDI output device and send MIDI messages to that device. A program using this class might do something like this:
OSC_MIDIOutput()

virtual ~OSC_MIDIOutput()

void GetListOfDevices(OSC_StringArray &list, bool includeDeviceNumber = false)
Returns a list of installed MIDI input devices

int GetNumDevices()
Returns the number of installed devices

OSC_ERR GetDevName(std::string &name)
Get the name of the current open device

OSC_ERR GetDevName(int deviceid, std:: string &name)
Get the name of the specified device (number)

OSC_ERR GetDevID(const std::string &name, int &deviceid)
Get the device id of the specified device (name)

OSC_ERR Open(int deviceid)
Opens the device. Must be called before calling SendMIDIMessage(...).

OSC_ERR Close()
Closes the device

void SendMIDIMessage(OSC_MIDIDataShort status, OSC_MIDIDataShort data1, OSC_MIDIDataShort data2)
Sends a MIDI message

void SendMIDIMessage(const OSC_MIDIMessage &message)
Sends a MIDI message

MMRESULT GetLastMMError()
Returns the latest error (if any) from the Windows MultiMedia system

std::string GetLastMMErrorDescription()
Returns the latest error in text format


This class has no child classes.

alphabetic index hierarchy of classes



generated by doc++