public class WhiteKeyModOctave extends PitchModOctave<WhiteKeyModOctave>
PitchModOctave
which represents only
the "white keys" of the keyboard. By adding alterations,
one gets FunctionalPitchClassModOctave
.Modifier and Type | Field and Description |
---|---|
static WhiteKeyModOctave |
a
The white key called "a".
|
static WhiteKeyModOctave |
b_h
The white key called "b" in English and "h" in German.
|
static WhiteKeyModOctave |
c
The white key called "c".
|
static EntityCatalog<WhiteKeyModOctave> |
catalog
The catalog holding the constant values of this type.
|
static WhiteKeyModOctave |
d
The white key called "d".
|
static WhiteKeyModOctave |
e
The white key called "e".
|
static WhiteKeyModOctave |
f
The white key called "f".
|
protected int |
fifthsFromC
Distance of this pitch class from the c, measured in fifth upwards.
|
static WhiteKeyModOctave |
g
The white key called "g".
|
static int |
halfTones_per_Fifth
Number of half tone steps on the keyboard which correspond to the interval of a fifth.
|
static int |
halfTones_per_Octave
Number of half tone steps on the keyboard which correspond to the interval of an octave.
|
protected int |
halfTonesFromC
Distance of this pitch class from the c, measured in half tone steps upwards.
|
static WhiteKeyModOctave[] |
whiteKeyScale
The ascending scale of white keys starting with c.
|
protected int |
whiteKeysFromC
Distance of this pitch class from the c, measured in white keys upwards.
|
documentations
Modifier | Constructor and Description |
---|---|
protected |
WhiteKeyModOctave(int whiteKeysFromC,
int fifthsFromC,
EntityCatalog<WhiteKeyModOctave> catalog,
Map<String,String> map)
Only constructor, setting all parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
get_fifthsFromC()
Get positive distance from c up to this pitch, in fifth.
|
int |
get_halfTonesFromC()
Get positive distance from c up to this pitch, in half tones / chromatic steps.
|
int |
get_whiteKeysFromC()
Get positive distance from c up to this pitch, in white keys / scalar steps.
|
static WhiteKeyModOctave |
getWhiteKeyFromC(int i)
Get the white key which lays the given number of steps above c, modulo 7.
|
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
public static final int halfTones_per_Fifth
public static final int halfTones_per_Octave
protected final int whiteKeysFromC
protected final int halfTonesFromC
protected final int fifthsFromC
public static final EntityCatalog<WhiteKeyModOctave> catalog
public static final WhiteKeyModOctave c
public static final WhiteKeyModOctave d
public static final WhiteKeyModOctave e
public static final WhiteKeyModOctave f
public static final WhiteKeyModOctave g
public static final WhiteKeyModOctave a
public static final WhiteKeyModOctave b_h
public static final WhiteKeyModOctave[] whiteKeyScale
protected WhiteKeyModOctave(int whiteKeysFromC, int fifthsFromC, EntityCatalog<WhiteKeyModOctave> catalog, Map<String,String> map)
public int get_whiteKeysFromC()
public int get_halfTonesFromC()
public int get_fifthsFromC()
public static WhiteKeyModOctave getWhiteKeyFromC(int i)