Class Key


  • public class Key
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Key DEFAULT_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      Key​(java.lang.String keySignature)
      This method requires a key signature represented by a chord name, like Cmaj, or 'K' followed by sharps or flats, like "K####" for E Major
      Key​(Chord chord)  
      Key​(Key key)  
      Key​(Note root, Scale scale)  
    • Field Detail

      • DEFAULT_KEY

        public static final Key DEFAULT_KEY
    • Constructor Detail

      • Key

        public Key​(Note root,
                   Scale scale)
      • Key

        public Key​(Chord chord)
      • Key

        public Key​(java.lang.String keySignature)
        This method requires a key signature represented by a chord name, like Cmaj, or 'K' followed by sharps or flats, like "K####" for E Major
      • Key

        public Key​(Key key)
    • Method Detail

      • getKeySignature

        public java.lang.String getKeySignature()
      • getRoot

        public Note getRoot()
      • getScale

        public Scale getScale()