java.lang.Object
provided.abcMusic.utils.KeySignature.KeyNote
- Enclosing class:
- KeySignature
Utility class to keep track of the position of notes
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Whether or not the note is accidental: -1 = flat, 0 = natural, +1 = sharpchar
The letter of the note -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
letter
public char letterThe letter of the note -
accidental
public int accidentalWhether 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 noteaccidental
- Whether or not the note is accidental: -1 = flat, 0 = natural, +1 = sharp
-
-
Method Details