Copyright © 2001-2018 MultiMedia Soft

MIDI.KeyboardRangeSet 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 MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

control.MIDI.KeyboardRangeSet (

hWndKeyboard as OLE_HANDLE,

nLowNote as Integer,

nHighNote as Integer

) as enumErrorCodes


 

[C++]

short control.MIDI.KeyboardRangeSet (

OLE_HANDLE hWndKeyboard,

short nLowNote,

short nHighNote

);


 

Parameter

Description

 

 

hWndKeyboard

Handle of the virtual keyboard as returned by the call to the MIDI.KeyboardCreate 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 get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful