Copyright © 2013-2014 MultiMedia Soft

MidiDevicesEventReceived event

Previous pageReturn to chapter overviewNext page

Remarks

 

Occurs when a MIDI event is received from a MIDI input device.

 

MIDI events can be filtered, avoiding this event being generated, through the MidiDevices.InputEventFilterSet method.

 

For further details about input events management see the How to synchronize the container application with the control tutorial.

For further details about the use of MIDI devices see the MidiDevices object section and the How to manage MIDI devices tutorial.

 

 

Syntax

 

[Visual Basic]

MidiDevicesEventReceived (

nEventUniqueId as Integer,

bRawEvent as enumBoolean

)


 

[C++]

void MidiDevicesEventReceived (

short nEventUniqueId,

short bRawEvent

);


 

 

Parameter

Description

 

 

nEventUniqueId

Unique identifier of the MIDI event which can be used for obtaining further info and data about the MIDI event through a subsequent call to the MidiDevices.EventReadShort or MidiDevices.EventReadRawInfoGet or MidiDevices.EventReadRaw methods.

bRawEvent

Boolean value that specifies if the received MIDI event is a short event or a raw event.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

The received MIDI event is a short one and related data can be obtained through the MidiDevices.EventReadShort method

BOOL_TRUE

1

The received MIDI event is a raw one and related data can be obtained through the MidiDevices.EventReadRawInfoGet and MidiDevices.EventReadRaw methods