Copyright © 2005-2018 MultiMedia Soft

MIDI_KEYBOARD_SETTINGS structure

Previous pageReturn to chapter overviewNext page

The MIDI_KEYBOARD_SETTINGS structure (defined as MIDI_KEYBOARD_SETTINGS_DLL when used for COM interoperability) describes the graphical settings applied to a specific virtual piano keyboard. The current settings can be retrieved through the MIDI.KeyboardGraphicalSettingsGet method and modified through the MIDI.KeyboardGraphicalSettingsSet method. Below you can see an example of a horizontal virtual piano keyboard with default colors.

 

 

For further details about the use of MIDI protocol see the MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

C# definition

 

public struct MIDI_KEYBOARD_SETTINGS

{

public Color     colorBackground;

public Color     colorWhiteKeys;

public Color     colorBlackKeys;

public Color     colorWhiteKeysBorders;

public Color     colorBlackKeysBorders;

public Color     colorWhiteKeysPressed;

public Color     colorBlackKeysPressed;

public Color     colorWhiteKeysPressedBorders;

public Color     colorBlackKeysPressedBorders;

}

 

Definition for COM interoperability

 

public struct MIDI_KEYBOARD_SETTINGS_DLL

{

public Int32     colorBackground;

public Int32     colorWhiteKeys;

public Int32     colorBlackKeys;

public Int32     colorWhiteKeysBorders;

public Int32     colorBlackKeysBorders;

public Int32     colorWhiteKeysPressed;

public Int32     colorBlackKeysPressed;

public Int32     colorWhiteKeysPressedBorders;

public Int32     colorBlackKeysPressedBorders;

}

 

Member

Description

 

 

colorBackground

The color used for rendering the keyboard's background  (default is set to Black)

colorWhiteKeys

The color used for rendering white keys (default is set to White)

colorBlackKeys

The color used for rendering black keys (default is set to Black)

colorWhiteKeysBorders

The color used for rendering the border of white keys (default is set to Black)

colorBlackKeysBorders

The color used for rendering the border of black keys (default is set to Black)

colorWhiteKeysPressed

The color used for rendering white keys in pressed state (default is set to Light Blue)

colorBlackKeysPressed

The color used for rendering black keys in pressed state (default is set to Light Blue)

colorWhiteKeysPressedBorders

The color used for rendering the border of white keys in pressed state (default is set to Black)

colorBlackKeysPressedBorders

The color used for rendering the border of black keys in pressed state (default is set to Black)