Skip to content

Commit

Permalink
Merge pull request #105 from notengrafik/pr/libmei-update
Browse files Browse the repository at this point in the history
libmei meiDocumentToFile() update
  • Loading branch information
ahankinson authored Jun 13, 2019
2 parents 37fd1da + 7b1cab7 commit dda9ab5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/libmei.plg
Original file line number Diff line number Diff line change
Expand Up @@ -1612,10 +1612,11 @@ GetTail "(element) {

meiDocumentToFile "(meidoc, filename) {
meiout = _exportMeiDocument(meidoc);
Sibelius.CreateTextFile(filename);
Sibelius.AppendTextFile(filename, meiout, 1);

return true;
if (Sibelius.CreateTextFile(filename)) {
return Sibelius.AppendTextFile(filename, meiout, 1);
} else {
return false;
}
}"

meiDocumentToString "(meidoc) {
Expand Down

0 comments on commit dda9ab5

Please sign in to comment.