#include
<MPxMidiInputDevice.h>
List of all
members.
Detailed Description
Midi input device.
This is the base class for user defined MIDI input devices.
Child classes of MPxMidiInputDevice should define:
- a constructor which defines number of buttons and
axes
- nameAttributes() which names the buttons and axes
(optional)
-
deviceState() which turns a midi event into an MDeviceState or returns NULL if it is not
a midi event from this device
Member Function Documentation
MStatus
MPxMidiInputDevice::openDevice |
( |
|
) |
[virtual] |
void MPxMidiInputDevice::closeDevice |
( |
|
) |
[virtual] |
void MPxMidiInputDevice::nameAxes |
( |
|
) |
[virtual] |
Assign names to the axes of the device.
void MPxMidiInputDevice::nameButtons |
( |
|
) |
[virtual] |
Assign names to the buttons of the device.
MDeviceState *
MPxMidiInputDevice::deviceState |
( |
|
) |
[virtual] |
Return the current state of the input device.
MStatus
MPxMidiInputDevice::sendMessage |
( |
const char *const |
messageType, |
|
|
const char *const |
messageParams |
|
|
) |
|
|
[virtual] |
If this midi event belongs to this device then fiil up the
MDeviceState. Otherwise return NULL. The
user should override this method.
User should override this method.
char * MPxMidiInputDevice::getMessage |
( |
const char *const |
messageType, |
|
|
char * |
messageResponse |
|
|
) |
|
|
[virtual] |
User should override this method.
void MPxMidiInputDevice::doButtonEvents |
( |
bool |
val = true |
) |
[virtual] |
This method is used to specify whether this device is accepting
button events from its child.
void MPxMidiInputDevice::doMovementEvents |
( |
bool |
val = true |
) |
[virtual] |
This method is used to specify whether this device is accepting
movement input from its child.
MStatus
MPxMidiInputDevice::setNamedButton |
( |
const MString & |
buttonName, |
|
|
unsigned short |
button |
|
|
) |
|
|
[protected] |
Set the name of the specified button.
Add the given channel to this device.
MStatus
MPxMidiInputDevice::setDegreesOfFreedom |
( |
int |
freedom |
) |
[protected] |
Set the degrees of freedom for this device.
MStatus
MPxMidiInputDevice::setNumberOfButtons |
( |
int |
buttons |
) |
[protected] |
Set the number of buttons for this device.