Skip to content

Commit

Permalink
Fixed: Ties with no end note are encoded with a start id only
Browse files Browse the repository at this point in the history
  • Loading branch information
ahankinson committed Oct 15, 2015
1 parent 3d5a12a commit 27c5ac0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ExportGenerators.mss
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,16 @@ function GenerateNote (nobj) {
next_object = next_bar.NthBarObject(0);
}

if (next_object = null or next_object.Type != 'NoteRest')
{
// it's a hanging tie. What to do, what to do?
// for now, just encode the startid with no endid and return the note.
tie = libmei.Tie();
libmei.AddAttribute(tie, 'startid', '#' & n._id);
n._property:TieIds = CreateSparseArray(tie._id);
return n;
}

for each next_note in next_object
{
if (nobj.Pitch = next_note.Pitch)
Expand Down

0 comments on commit 27c5ac0

Please sign in to comment.