ChordPattern constructor

ChordPattern({
  1. required String name,
  2. required String fullName,
  3. required List<String> abbrs,
  4. required List<Interval> intervals,
})

Implementation

ChordPattern({
  required this.name,
  required this.fullName,
  required this.abbrs,
  required this.intervals,
}) {
  _byName[name] = this;
  _byName[fullName] = this;
  for (final abbr in abbrs) {
    _byName[abbr] = this;
  }
  _byIntervals[_intervalSetKey(intervals)] = this;
}