public class Keyboard extends Object
Modifier and Type | Field and Description |
---|---|
static int |
midiKeyOffset
Numeric value of "small" octave, as defined in
OctaveRegister
is "0(zero").Numeric value i.e. |
Constructor and Description |
---|
Keyboard() |
Modifier and Type | Method and Description |
---|---|
static int |
keyNumber(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> po)
Deliver an index into the keyboard for the given FunctionalPitch.
|
static FunctionalPitch |
pitchByKey(int keyNumber,
TwelveToneFunctionalRepresentation rep)
Deliver a functional pitch which is represented by this key.
|
public static final int midiKeyOffset
OctaveRegister
is "0(zero").midiKeyOffset
", with
midiKeyOffset == 48 .public static int keyNumber(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> po)
public static FunctionalPitch pitchByKey(int keyNumber, TwelveToneFunctionalRepresentation rep)
keyNumber
- the number of this keyrep
- a mapping of the chromatic scale 0..1 of keyst starting with "c"
to pitch classes.