grammar chords;
parse
- : rootNote majMinSusPowerExpr* addNotesExpr* extensionExpr* overBassNoteExpr*
+ : rootNote majMinSusPowerExpr* addNotesExpr* overBassNoteExpr*
+ | rootNote majMinSusPowerExpr* addNotesExpr extensionExpr* overBassNoteExpr
;
rootNote
: ADD* SIX
| ADD* SEVEN
| MAJ_SEVEN
+ | MIN_SEVEN
| ADD* NINE
| ADD* ELEVEN
;
MAJ_SEVEN: MAJOR '7';
+MIN_SEVEN: MINOR '7';
+
INTERVAL: (MAJOR|MINOR)* ('b'|'#')* DIGITS ;
DIGITS: [1-9]+ ;
self.addedNotes.append('min7')
if ctx.MAJ_SEVEN():
self.addedNotes.append('maj7')
+ if ctx.MIN_SEVEN():
+ self.addedNotes.append('min7')
+ self.chordType = ChordParser.MINOR
if ctx.NINE():
self.addedNotes.append('maj9')
if ctx.ELEVEN():