Copyright © 2013-2014 MultiMedia Soft

CallbackMidiDjConsoleEventUnmapped delegate

Previous pageReturn to chapter overviewNext page

Remarks

 

Callback delegate invoked from a secondary thread when a manual action (for example the pressing of a button, the movement of a slider or of a jog wheel) is performed on a console's physical control which has not been mapped into the DJ Console profile loaded inside the instance of the component or when the reception of events specific for mapped controls has been disabled through a call to the MidiDjConsole.EnableMappedEvents method.

 

Events are sent to the container application only if a connection has been established between the instance of the component and the DJ Console through a call to the MidiDjConsole.Connect method.

 

In order to allow the component invoking this delegate at runtime, the container application must invoke the CallbackMidiDjConsoleEventUnmappedSet method passing the address of the callback function.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

For further details about interfacing with MIDI DJ Consoles see the ClassMidiDjConsole class section and the How to manage MIDI DJ consoles tutorial.

 

 

Syntax

 

[Visual Basic]

Public Delegate Sub CallbackMidiDjConsoleEventUnmapped (

nMidiCommand as Int16,

nMidiChannel as Int16,

nMidiData1 as Int16,

nMidiData2 as Int16,

nTimeStamp as Int32,

nUserData as Int32

)


 

[C#]

public delegate void CallbackMidiDjConsoleEventUnmapped (

Int16 nMidiCommand,

Int16 nMidiChannel,

Int16 nMidiData1,

Int16 nMidiData2,

Int32 nTimeStamp,

Int32 nUserData

)


 

[C++]

public delegate void CallbackMidiDjConsoleEventUnmapped (

Int16 nMidiCommand,

Int16 nMidiChannel,

Int16 nMidiData1,

Int16 nMidiData2,

Int32 nTimeStamp,

Int32 nUserData

)


 

Parameter

Description

 

 

nMidiCommand

Number representing the MIDI command

nMidiChannel

Number representing the MIDI channel

nMidiData1

Number representing the first parameter related to the MIDI event

nMidiData2

Number representing the second parameter related to the MIDI event

nTimeStamp

The time stamp of the event expressed in milliseconds elapsed from the moment in which the MIDI input device of the DJ Console was opened through a call to the MidiDevices.Open method.

nUserData

User instance data