DCMLab / standards

Repository containing standards developed at the DCML. https://dcmlab.github.io/standards
4 stars 0 forks source link

Regex lets wrong 7th-chords pass #42

Open johentsch opened 3 years ago

johentsch commented 3 years ago

The specifiers M % +M can only occur in seventh chords and therefore one of 7 65 43 2 needs to follow it. Since form and figbass are defined in two separate groups, the regex matches even if figbass is missing. To improve the regex would probably require lookaheads. Or we check that elsewhere and/or do some automatic correction, just assuming 7?