tonaljs / tonal

A music theory library for Javascript
https://tonaljs.github.io/tonal/docs
3.82k stars 218 forks source link

Chord.detect unexpected results for simple detection Cmajor #331

Closed lidoravitan closed 1 year ago

lidoravitan commented 2 years ago

javascript Chord.detect(['C', 'E', 'G']) ==> [ 'CM', 'Em#5/C' ]

what Am i missing?

ashleymays commented 2 years ago

I'm not sure if you've already had your question answered, but I'll just say that I think these results are fine. "CM" stands for C Major, and "Em#5/C" looks weird, but it's just an E minor with a "C" instead of a "B", and that "C" becomes the root of the chord. So it's the same as a C Major.