From e18477adafa0360a9ff8fa89b2db7c15ed558169 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sat, 28 Jun 2008 14:23:24 +0200 Subject: [PATCH] MusicXML: Update musicxml2ly to use the new \tempo text dur=count function For parenthesized metronome marks, we can now also use the new \tempo "" dur=count function, which produces a parenthesized tempo mark if an empty text is given. --- python/musicexp.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/musicexp.py b/python/musicexp.py index c653c5cb79..e73f78b1a4 100644 --- a/python/musicexp.py +++ b/python/musicexp.py @@ -1371,9 +1371,7 @@ class TempoMark (Music): return res if self.beats: if self.parentheses: - dm = self.duration_to_markup (self.baseduration) - contents = "\"(\" %s = %s \")\"" % (dm, self.beats) - res += self.tempo_markup_template() % contents + res += "\\tempo \"\" %s=%s" % (self.baseduration.ly_expression(), self.beats) else: res += "\\tempo %s=%s" % (self.baseduration.ly_expression(), self.beats) elif self.newduration: -- 2.39.5