accidentalValues top-level property
A map from the string representation of an accidental (♯, ♭, 𝄪, 𝄫) to the number of half-steps that the accidental adds to a pitch.
Implementation
final Map<String, int> accidentalValues = {
'#': 1,
'♯': 1,
'b': -1,
'♭': -1,
'𝄪': 2,
'𝄫': -2,
};