Skip to content

is it broken, or am I? #422

Answered by danigb
amazingDJname asked this question in Q&A
Mar 11, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey:

As I mentioned several times, chord detection is not very well polished inside the library. Anyway, I think you're using an older version. You can use Chord.detect directly without need of loading another library.

Those are the results I get on latest:

import { Chord } from 'tonal';
Chord.detect(["c", "e", "g"]) // => [ 'CM', 'Em#5/C' ]
Chord.detect(["e", "g", "c"]) // => [ 'Em#5', 'CM/E' ]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amazingDJname
Comment options

Answer selected by danigb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants