Skip to content

Commit

Permalink
Add @MetCon="false" to measures not conforming to time signature
Browse files Browse the repository at this point in the history
  • Loading branch information
th-we committed Feb 1, 2017
1 parent 127d02e commit a967bfc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ExportGenerators.mss
Expand Up @@ -301,6 +301,15 @@ function GenerateMeasure (num) {
// since so much metadata about the staff and other context
// is available on the bar that should now be on the measure, go through the bars
// and try to extract it.

systf = score.SystemStaff;
currTimeS = systf.CurrentTimeSignature(num);
sysBar = systf[num];

if (sysBar.Length != (currTimeS.Numerator * 1024 / currTimeS.Denominator))
{
libmei.AddAttribute(m, 'metcon', 'false');
}

for i = 1 to staves.Length + 1
{
Expand Down

0 comments on commit a967bfc

Please sign in to comment.