#include <rtmididevice.h>

Public Member Functions | |
| CARtMidiDevice () | |
| ~CARtMidiDevice () | |
| QMap< int, QString > | getOutputPorts () |
| QMap< int, QString > | getInputPorts () |
| bool | openOutputPort (int port) |
| bool | openInputPort (int port) |
| void | closeOutputPort () |
| void | closeInputPort () |
| void | send (QVector< unsigned char > message, int offset=0) |
Private Attributes | |
| RtMidiOut * | _out |
| RtMidiIn * | _in |
| bool | _outOpen |
| bool | _inOpen |
Copyright (c) 2006, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
Usage: 1) When created, Input and Output MIDI devices get initialized. 2) Call getOutputPorts() and getInputPorts() to retreive a map of portNumber/portName. 3) Call openOutputPort(port) and/or openInputPort(port) to open an Output/Input port. 4) Send MIDI events (for midi output) using send(QVector<unsigned char>).
Definition at line 20 of file rtmididevice.h.
| CARtMidiDevice::CARtMidiDevice | ( | ) |
Definition at line 33 of file rtmididevice.cpp.
References _in, _inOpen, CAMidiDevice::_midiDeviceType, _out, _outOpen, RtError::printMessage(), CAMidiDevice::RtMidiDevice, and CAMidiDevice::setRealTime().

| CARtMidiDevice::~CARtMidiDevice | ( | ) |
Definition at line 147 of file rtmididevice.cpp.
References _in, _out, closeInputPort(), and closeOutputPort().

| QMap< int, QString > CARtMidiDevice::getOutputPorts | ( | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 123 of file rtmididevice.cpp.
References _out, RtMidiOut::getPortCount(), RtMidiOut::getPortName(), and RtError::printMessage().

| QMap< int, QString > CARtMidiDevice::getInputPorts | ( | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 135 of file rtmididevice.cpp.
References _in, RtMidiIn::getPortCount(), RtMidiIn::getPortName(), and RtError::printMessage().

| bool CARtMidiDevice::openOutputPort | ( | int | port | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 51 of file rtmididevice.cpp.
References _out, _outOpen, RtMidiOut::getPortCount(), RtMidiOut::openPort(), and RtError::printMessage().

| bool CARtMidiDevice::openInputPort | ( | int | port | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 70 of file rtmididevice.cpp.
References _in, _inOpen, RtMidiIn::getPortCount(), RtMidiIn::openPort(), RtError::printMessage(), CAMidiDevice::rtMidiInCallback, and RtMidiIn::setCallback().

| void CARtMidiDevice::closeOutputPort | ( | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 101 of file rtmididevice.cpp.
References _out, _outOpen, RtMidiOut::closePort(), and RtError::printMessage().
Referenced by ~CARtMidiDevice().


| void CARtMidiDevice::closeInputPort | ( | ) | [virtual] |
Implements CAMidiDevice.
Definition at line 111 of file rtmididevice.cpp.
References _in, _inOpen, RtMidiIn::cancelCallback(), RtMidiIn::closePort(), and RtError::printMessage().
Referenced by ~CARtMidiDevice().


| void CARtMidiDevice::send | ( | QVector< unsigned char > | message, | |
| int | offset = 0 | |||
| ) | [virtual] |
Sends the given message to the midi device. offset is ignored because CARtMidiDevice is a realtime device.
Implements CAMidiDevice.
Definition at line 159 of file rtmididevice.cpp.
References _out, _outOpen, and RtMidiOut::sendMessage().

RtMidiOut* CARtMidiDevice::_out [private] |
Definition at line 35 of file rtmididevice.h.
Referenced by CARtMidiDevice(), closeOutputPort(), getOutputPorts(), openOutputPort(), send(), and ~CARtMidiDevice().
RtMidiIn* CARtMidiDevice::_in [private] |
Definition at line 36 of file rtmididevice.h.
Referenced by CARtMidiDevice(), closeInputPort(), getInputPorts(), openInputPort(), and ~CARtMidiDevice().
bool CARtMidiDevice::_outOpen [private] |
Definition at line 37 of file rtmididevice.h.
Referenced by CARtMidiDevice(), closeOutputPort(), openOutputPort(), and send().
bool CARtMidiDevice::_inOpen [private] |
Definition at line 38 of file rtmididevice.h.
Referenced by CARtMidiDevice(), closeInputPort(), and openInputPort().
1.5.3