Medley::Note
Inherits Reference / Object
Constants
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
new(current_note : String)
SourceInstance methods
halfstep_down
Sourcehalfstep_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.
next_root
Sourcewholestep_up
Source