fromIntervals static method

ChordPattern fromIntervals(
  1. Iterable<Interval> intervals
)

Implementation

static ChordPattern fromIntervals(Iterable<Interval> intervals) {
  _initializeChords();
  final chord = _byIntervals[_intervalSetKey(intervals)];
  if (chord == null)
    throw new NotFoundException("unknown chord interval pattern $intervals");
  return chord;
}