From cbf758784cf85ec2116273ff591696317c24a6e2 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Fri, 4 May 2007 05:26:53 +0000 Subject: [PATCH] Fix bug in lily representation of tied triplets --- Sources/VLModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/VLModel.cpp b/Sources/VLModel.cpp index 74c5c2a..56f35cc 100644 --- a/Sources/VLModel.cpp +++ b/Sources/VLModel.cpp @@ -1349,6 +1349,11 @@ void VLSong::LilypondNotes(std::string & notes) const notes.erase(trip, 15); while ((trip = notes.find("} ~ \\times 2/3 { ")) != std::string::npos) notes.replace(trip, 17, "~ ", 2); + // + // Swap ties into correct order + // + while ((trip = notes.find("} ~")) != std::string::npos) + notes.replace(trip, 3, "~ } ", 4); if (fGoToCoda == measure+1) notes += "\n"