fromPitches static method
Implementation
static Chord fromPitches(List<Pitch> pitches) {
for (final root in pitches) {
final intervals = pitches.map((pitch) => pitch - root).toSet();
try {
final chord = ChordPattern.fromIntervals(intervals).at(root);
chord._pitches = pitches;
return chord;
} on NotFoundException {}
}
throw new NotFoundException("unknown chord pitch pattern $pitches");
}