Mystic::Util
Miscellaneous utility methods
Constants
ACCIDENTAL_OFFSETS = {
"#": 1,
x: 2,
b: -1,
"♯": 1,
"♭": -1,
"𝄫": -2,
"𝄪": 2,
}
PERFECT_INTERVALS = [1, 4, 5, 8]
Class methods
Return the number of alterations given an accidental
Return the proper accidental given a numerical accidental_offset
Return a quality corresponding to the offset (number of alterations) and whether it is_perfect