Copyright © 2013-2014 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]

control.MidiVirtualKeyboard.RangeSet (

hWndKeyboard as OLE_HANDLE,

nLowNote as Integer,

nHighNote as Integer

) as enumDjcErrorCodes


 

[C++]

short control.MidiVirtualKeyboard.RangeSet (

OLE_HANDLE hWndKeyboard,

short nLowNote,

short 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

 

 

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The call was successful.

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.