Closed saebekassebil closed 11 years ago
This will not make it to the library. Instead I've factored this code out into its own library, which I'll hopefully release soon.
I've release più which deals with inferring/recognizing chords from collections of notes.
This PR is a stab at implementing a method to infer chord names from a collection of notes as discussed in #32. It implements a method
teoria.inferTriad(notes[])
that takes a list of notes, and tries to infer the triad that they constitute.Examples:
Since I'm not sure whether this is a good way of taking on the problem and I'm also somewhat unsure if this should even make it to the library, I'd like some feedback / suggestions on method and results, so please feel free to comment. Also, this only recognizes triads. Extended chords will be much more difficult because of the wealth of possible alterations.
cc'ing @quickredfox and @ecocity