accidentalValues top-level property

Map<String, int> accidentalValues
final

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,
};