class Medley::Note
- Medley::Note
- Reference
- Object
Defined in:
medley/note.crConstant Summary
-
ALIASES =
{"A##": "B", "B##": "C#", "C##": "D", "D##": "E", "E##": "F#", "F##": "G", "G##": "A", Abb: "G", Bbb: "A", Cbb: "Bb", Dbb: "C", Ebb: "D", Fbb: "Eb", Gbb: "F", "A#": "Bb", "B#": "C", "C#": "Db", "D#": "Eb", "E#": "F", "F#": "G", "G#": "Ab"}
-
NOTE_NAMES =
["A", "B", "C", "D", "E", "F", "G"] of ::String
Constructors
Instance Method Summary
-
#double_flat?
true if it's a valid note letter with bb
-
#double_sharp?
true if it's a valid note letter with ##
-
#flat?
true if it's a valid note letter with b
- #halfstep_down
-
#halfstep_up
Returns the same note, but up a halfstep in most cases Without context of the Key, there's no telling if the note E should be E# or F.
-
#name : String
Returns the current note name
-
#natural?
true if it's a valid note letter with no modifiers
- #next_root
-
#root
Returns the root of the note
-
#root_matches?(other_note : Note)
true if the root name is equal to the other note root
-
#sharp?
true if it's a valid note letter with #
- #wholestep_up
Constructor Detail
Instance Method Detail
def halfstep_up
#
Returns the same note, but up a halfstep in most cases Without context of the Key, there's no telling if the note E should be E# or F. Since there's no triple sharps, this is the only case we just go to the next note.
true if the root name is equal to the other note root