Class KeyboardRange
java.lang.Object
org.jjazz.instrumentcomponents.keyboard.api.KeyboardRange
Define the size (number of keys) of a KeyboardComponent.
- Author:
- Administrateur
-
Field Summary
Modifier and TypeFieldDescriptionstatic final KeyboardRange
static final KeyboardRange
static final KeyboardRange
static final KeyboardRange
static final KeyboardRange
static final KeyboardRange
static final KeyboardRange
static final KeyboardRange
-
Method Summary
-
Field Details
-
_128_KEYS
-
_88_KEYS
-
_76_KEYS
-
_61_KEYS
-
_49_KEYS
-
_37_KEYS
-
BASS_KEYS
-
DRUMS_KEYS
-
-
Method Details
-
next
Get a bigger keyboard, or if too big reset size to the smallest one (3 octaves, keeping approximatively the same center note)- Returns:
-
getLowestPitch
public int getLowestPitch() -
getHighestPitch
public int getHighestPitch() -
getNbKeys
public int getNbKeys() -
getNbWhiteKeys
public int getNbWhiteKeys() -
getCentralC
public int getCentralC()Get the Midi pitch of the central C for this keyboard range.- Returns:
-
isValid
public boolean isValid(int pitch) - Parameters:
pitch
-- Returns:
- True if pitch is valid for this keyboard range.
-