Package eu.bandm.music.entities
Class WhiteKeyModOctave
- All Implemented Interfaces:
PitchIndication
,Translet.Parseable<WhiteKeyModOctave>
A specialization of
PitchModOctave
which represents only
the "white keys" of the keyboard. By adding alterations,
one gets FunctionalPitchModOctave
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final WhiteKeyModOctave
The white key called "a".static final WhiteKeyModOctave
The white key called "b" in English and "h" in German.static final WhiteKeyModOctave
The white key called "c".static final EntityCatalog<WhiteKeyModOctave>
The catalog holding the constant values of this type.static final WhiteKeyModOctave
The white key called "d".static final WhiteKeyModOctave
The white key called "e".static final WhiteKeyModOctave
The white key called "f".protected final int
Distance of this pitch class from the c, measured in fifth upwards.static final WhiteKeyModOctave
The white key called "g".static final int
Number of half tone steps on the keyboard which correspond to the interval of a fifth.static final int
Number of half tone steps on the keyboard which correspond to the interval of an octave.protected final int
Distance of this pitch class from the c, measured in half tone steps upwards.static final WhiteKeyModOctave[]
The ascending scale of white keys starting with c.protected final int
Distance of this pitch class from the c, measured in white keys upwards.Fields inherited from class eu.bandm.tscore.base.Entity
documentations
-
Constructor Summary
ModifierConstructorDescriptionprotected
WhiteKeyModOctave
(int whiteKeysFromC, int fifthsFromC, EntityCatalog<WhiteKeyModOctave> catalog, Map<String, String> map) Only constructor, setting all parameters. -
Method Summary
Modifier and TypeMethodDescriptionint
Get positive distance from c up to this pitch, in fifth.int
Get positive distance from c up to this pitch, in half tones / chromatic steps.int
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.Methods inherited from class eu.bandm.tscore.base.Entity
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString, toString
-
Field Details
-
halfTones_per_Fifth
public static final int halfTones_per_FifthNumber of half tone steps on the keyboard which correspond to the interval of a fifth.- See Also:
-
halfTones_per_Octave
public static final int halfTones_per_OctaveNumber of half tone steps on the keyboard which correspond to the interval of an octave.- See Also:
-
whiteKeysFromC
protected final int whiteKeysFromCDistance of this pitch class from the c, measured in white keys upwards. -
halfTonesFromC
protected final int halfTonesFromCDistance of this pitch class from the c, measured in half tone steps upwards. -
fifthsFromC
protected final int fifthsFromCDistance of this pitch class from the c, measured in fifth upwards. -
catalog
The catalog holding the constant values of this type. -
c
The white key called "c". -
d
The white key called "d". -
e
The white key called "e". -
f
The white key called "f". -
g
The white key called "g". -
a
The white key called "a". -
b_h
The white key called "b" in English and "h" in German. -
whiteKeyScale
The ascending scale of white keys starting with c.
-
-
Constructor Details
-
WhiteKeyModOctave
protected WhiteKeyModOctave(int whiteKeysFromC, int fifthsFromC, EntityCatalog<WhiteKeyModOctave> catalog, Map<String, String> map) Only constructor, setting all parameters.
-
-
Method Details
-
get_whiteKeysFromC
public int get_whiteKeysFromC()Get positive distance from c up to this pitch, in white keys / scalar steps. -
get_halfTonesFromC
public int get_halfTonesFromC()Get positive distance from c up to this pitch, in half tones / chromatic steps. -
get_fifthsFromC
public int get_fifthsFromC()Get positive distance from c up to this pitch, in fifth. -
getWhiteKeyFromC
Get the white key which lays the given number of steps above c, modulo 7. If i<0 find the white key the given number below.
-