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
FieldsModifier and TypeFieldDescriptionstatic final WhiteKeyModOctaveThe white key called "a".static final WhiteKeyModOctaveThe white key called "b" in English and "h" in German.static final WhiteKeyModOctaveThe white key called "c".static final EntityCatalog<WhiteKeyModOctave> The catalog holding the constant values of this type.static final WhiteKeyModOctaveThe white key called "d".static final WhiteKeyModOctaveThe white key called "e".static final WhiteKeyModOctaveThe white key called "f".protected final intDistance of this pitch class from the c, measured in fifth upwards.static final WhiteKeyModOctaveThe white key called "g".static final intNumber of half tone steps on the keyboard which correspond to the interval of a fifth.static final intNumber of half tone steps on the keyboard which correspond to the interval of an octave.protected final intDistance 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 intDistance of this pitch class from the c, measured in white keys upwards.Fields inherited from class eu.bandm.tscore.base.Entity
documentations - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWhiteKeyModOctave(int whiteKeysFromC, int fifthsFromC, EntityCatalog<WhiteKeyModOctave> catalog, Map<String, String> map) Only constructor, setting all parameters. - 
Method Summary
Modifier and TypeMethodDescriptionaddDiatonicSteps(int i) Get the white key which lays the given number of steps above this key, modulo 7.intGet positive distance from c up to this pitch, in fifth.intGet positive distance from c up to this pitch, in half tones = chromatic steps.intGet positive distance from c up to this pitch, in white keys = scalar steps.static WhiteKeyModOctavegetWhiteKeyFromC(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, getNames, getParser, getParser, getSpecific, 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. - 
addDiatonicSteps
Get the white key which lays the given number of steps above this key, modulo 7. 
 -