Copyright © 2013-2015 MultiMedia Soft

MidiVirtualKeyboard.RangeSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the range of key notes on the given virtual piano keyboard.

 

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

 

 

Syntax

 

[Visual Basic]

MidiVirtualKeyboard.RangeSet (

hWndKeyboard as IntPtr,

nLowNote as Int16,

nHighNote as Int16

) as IntPtr


 

[C#]

public IntPtr MidiVirtualKeyboard.RangeSet (

IntPtr hWndKeyboard,

Int16 nLowNote,

Int16 nHighNote

);


 

[C++]

public: IntPtr MidiVirtualKeyboard.RangeSet (

IntPtr hWndKeyboard,

Int16 nLowNote,

Int16 nHighNote

);


 

Parameter

Description

 

 

hWndKeyboard

Handle of the virtual keyboard as returned by the call to the MidiVirtualKeyboard.Create method

nLowNote

Lower note displayed on the virtual piano keyboard. Can be a value between 0 and 127 but must always be a natural note (white key).

nHighNote

Higher note displayed on the virtual piano keyboard. Can be a value between 2 and 127 but must always be a natural note (white key).

 

 

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.