Copyright © 2005-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 MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function KeyboardRangeSet (

hWndKeyboard as IntPtr,

nLowNote as Int16,

nHighNote as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes KeyboardRangeSet (

IntPtr hWndKeyboard,

Int16 nLowNote,

Int16 nHighNote

);


 

[C++]

public: enumErrorCodes KeyboardRangeSet (

IntPtr hWndKeyboard,

Int16 nLowNote,

Int16 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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.