Replies: 1 comment 3 replies
-
It seems like
So knowing that, you can fill in the missing part: const toChordType = (romanNumeral) => {
const { chordType, major } = RomanNumeral.get(romanNumeral);
if (chordType) return chordType;
return major ? 'Major' : 'minor';
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are looking for a solution where we can pass in a roman numeral notation argument and get back a chord alias as a response.
Basically, we are looking for a way to do the code below.
let chordAlias = chordFromRoman("IVMaj9");
We have tried the following.
The problem is that we keep getting back empty chords from
Chord.get(chordFromRomenNumerals)
The only time
Chord.get(chordFromRomenNumerals)
returns something other than an empty set is whenlet romemenNumeral = 'VIIMaj7';
. It seems as if the only supported chord types are Maj7 chords. Is that true?Are we trying to do something that is not supported by Tonal JS? Is there some sort of package in Tonal JS that we are missing?
Any help on this issue would be greatly supported.
Beta Was this translation helpful? Give feedback.
All reactions