You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does teoria.note.chord('maj') produce a major seventh chord, while teoria.note.chord(), teoria.note.chord('M'), and teoria.note.chord('major') produce a major triad?
var notes = [];
teoria.note('C4').chord('maj').notes().forEach(function(note){
notes.push(note.scientific());
});
console.log(notes.join(',')); // C4,E4,G4,B4
By contrast, teoria.note.chord('min') produces a minor triad as expected:
var notes = [];
teoria.note('C4').chord('min').notes().forEach(function(note){
notes.push(note.scientific());
});
console.log(notes.join(',')); // C4,Eb4,G4
The text was updated successfully, but these errors were encountered:
Actually thinking about it, it should be possible for the user to implement their own parser. In Denmark we use Cmaj as shorthand for Cmaj7, and I know that most jazz music is like that as well.
But my guess is that there are other, stricter rules that applies to classical music (although chord symbol don't often appear in classical sheet music), and maybe different countries has different rules.
I think for now I'd like to keep "Cmaj" = "Cmaj7", but let's think about a way where the user can configure the meaning of different chord symbols!
Why does
teoria.note.chord('maj')
produce a major seventh chord, whileteoria.note.chord()
,teoria.note.chord('M')
, andteoria.note.chord('major')
produce a major triad?By contrast, teoria.note.chord('min') produces a minor triad as expected:
The text was updated successfully, but these errors were encountered: