Module hw06

Class KeySignature.KeyNote

java.lang.Object
provided.abcMusic.utils.KeySignature.KeyNote
Enclosing class:
KeySignature

private class KeySignature.KeyNote extends Object
Utility class to keep track of the position of notes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Whether or not the note is accidental: -1 = flat, 0 = natural, +1 = sharp
    char
    The letter of the note
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyNote​(char letter, int accidental)
    Constructor for the class
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • letter

      public char letter
      The letter of the note
    • accidental

      public int accidental
      Whether or not the note is accidental: -1 = flat, 0 = natural, +1 = sharp
  • Constructor Details

    • KeyNote

      KeyNote(char letter, int accidental)
      Constructor for the class
      Parameters:
      letter - The letter of the note
      accidental - Whether or not the note is accidental: -1 = flat, 0 = natural, +1 = sharp
  • Method Details