Copyright © 2013-2015 MultiMedia Soft

CallbackMidiKeyboardNotificationSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the function of the CallbackMidiKeyboardNotification callback delegate which notifies when one of the keys on the virtual piano keyboard is pressed or released.

 

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

For further details about the use of the virtual MIDI keyboard see the ClassMidiVirtualKeyboard class section and the How to manage the virtual MIDI piano keyboard tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function CallbackMidiKeyboardNotificationSet (

function as CallbackMidiKeyboardNotification,

nUserData as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes CallbackMidiKeyboardNotificationSet (

CallbackMidiKeyboardNotification function,

Int32 nUserData

);


 

[C++]

public: enumErrorCodes CallbackMidiKeyboardNotificationSet (

CallbackMidiKeyboardNotification function,

Int32 nUserData

);


 

 

Parameter

Description

 

 

function

Callback function

nUserData

User instance data to pass to the callback function

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The method call was successful.