Class WhiteKeyModOctave

All Implemented Interfaces:
PitchIndication, Translet.Parseable<WhiteKeyModOctave>

public class WhiteKeyModOctave extends PitchModOctave<WhiteKeyModOctave>
A specialization of PitchModOctave which represents only the "white keys" of the keyboard. By adding alterations, one gets FunctionalPitchModOctave.
  • Field Details

    • halfTones_per_Fifth

      public static final int halfTones_per_Fifth
      Number 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_Octave
      Number of half tone steps on the keyboard which correspond to the interval of an octave.
      See Also:
    • whiteKeysFromC

      protected final int whiteKeysFromC
      Distance of this pitch class from the c, measured in white keys upwards.
    • halfTonesFromC

      protected final int halfTonesFromC
      Distance of this pitch class from the c, measured in half tone steps upwards.
    • fifthsFromC

      protected final int fifthsFromC
      Distance of this pitch class from the c, measured in fifth upwards.
    • catalog

      public static final EntityCatalog<WhiteKeyModOctave> catalog
      The catalog holding the constant values of this type.
    • c

      public static final WhiteKeyModOctave c
      The white key called "c".
    • d

      public static final WhiteKeyModOctave d
      The white key called "d".
    • e

      public static final WhiteKeyModOctave e
      The white key called "e".
    • f

      public static final WhiteKeyModOctave f
      The white key called "f".
    • g

      public static final WhiteKeyModOctave g
      The white key called "g".
    • a

      public static final WhiteKeyModOctave a
      The white key called "a".
    • b_h

      public static final WhiteKeyModOctave b_h
      The white key called "b" in English and "h" in German.
    • whiteKeyScale

      public static final WhiteKeyModOctave[] whiteKeyScale
      The ascending scale of white keys starting with c.
  • Constructor Details

  • 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

      public static WhiteKeyModOctave getWhiteKeyFromC(int i)
      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.