Note

public class Note

A note class to store specific note.

Constructors

Link copied to clipboard
public void Note(int note)
Creates new note.
public void Note(int octave, Note.Tone tone, boolean sharped)
Creates new note.

Types

Link copied to clipboard
public enum Tone
An enum holding tones.

Functions

Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public static Note flat(int octave, Note.Tone tone)
Creates new note for flat tone, such as A-flat.
Link copied to clipboard
public Note flattened()
Link copied to clipboard
public int getOctave()
Returns the octave of this note.
Link copied to clipboard
public Note.Tone getTone()
Returns the tone of this note.
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isSharped()
Returns if this note is sharped.
Link copied to clipboard
public static Note natural(int octave, Note.Tone tone)
Creates new note for natural tone, such as A-natural.
Link copied to clipboard
public static Note sharp(int octave, Note.Tone tone)
Creates new note for sharp tone, such as A-sharp.
Link copied to clipboard
public Note sharped()
Link copied to clipboard
public String toString()