All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
List of all members
MidiKeyboardPanel Class Reference
Inheritance diagram for MidiKeyboardPanel:
FloatingTileContent ObjectWithDefaultProperties

Additional Inherited Members

- Public Member Functions inherited from FloatingTileContent
FloatingTile * getParentShell ()
 
void setCustomTitle (String newCustomTitle)
 
String getCustomTitle () const
 
void setDynamicTitle (const String &newDynamicTitle)
 
String getBestTitle () const
 
virtual void siblingAmountChanged ()
 
- Public Member Functions inherited from ObjectWithDefaultProperties
void resetObject (DynamicObject *objectToClear)
 
- Protected Member Functions inherited from FloatingTileContent
 FloatingTileContent (FloatingTile *parent_)
 
virtual int getFixedWidth () const
 

Detailed Description

Type-ID: Keyboard

A virtual MIDI Keyboard that can be customized and filmstripped.

Keyboard Screenshot

Example JSON

``` const var data = { "Type": "Keyboard", "KeyWidth": 14, "DisplayOctaveNumber": false, "LowKey": 9, "HiKey": 127, "CustomGraphics": false, "DefaultAppearance": true, "BlackKeyRatio": 0.7 }; ```

Using custom filmstrips

If you want to use your own filmstrips for the keyboard, you have to add your images with a fixed file name scheme to the Images subfolder of your project and set CustomGraphics to true. The files must be put in a subfolder called keyboard and have these names:

``` {PROJECT_FOLDER}keyboard/up_0.png | the up state for every C key {PROJECT_FOLDER}keyboard/down_0.png | the down state for every C key {PROJECT_FOLDER}keyboard/up_1.png | the up state for every C# key {PROJECT_FOLDER}keyboard/down_1.png | the down state for every C# key {PROJECT_FOLDER}[...] {PROJECT_FOLDER}keyboard/up_11.png | the up state for every B key {PROJECT_FOLDER}keyboard/down_11.png | the down state for every B key ```

Member Enumeration Documentation

Enumerator
CustomGraphics 

set to true if you want to use custom graphics for your keyboard.

KeyWidth 

the width per key in logical pixels.

LowKey 

the lowest visible key.

HiKey 

the highest visible key.

BlackKeyRatio 

the height of the black keys in proportion to the total height.

DefaultAppearance 

set this to true to use the standard appearance in HISE.

DisplayOctaveNumber 

set this to true to add octave numbers at each C note.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.