Skip to content

Commit

Permalink
Barline repeats
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Dec 10, 2024
1 parent 1d54098 commit 83f6f23
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jazz-mxml.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,21 @@ function Flow(X) {
v = d.attr('dynamics');
if (v) Msr.dyn[p] = _dyn(v);
}
else if (x.tag == 'barline') {
v = x.attr('location');
if (v == 'left') {
d = x.attr('repeat', 'direction');
if (d == 'forward') Msr.forward = true;
d = x.attr('coda');
if (d) Msr.segno = d;
d = x.attr('segno');
if (d) Msr.segno = d;
}
else if (v == 'right') {
d = x.attr('repeat', 'direction');
if (d == 'backward') Msr.backward = true;
}
}
//else console.log('skip:', x.tag);
if (Msr.len < t) Msr.len = t;
}
Expand Down

0 comments on commit 83f6f23

Please sign in to comment.