From: Reinhold Kainhofer Date: Sat, 28 Jun 2008 12:23:24 +0000 (+0200) Subject: MusicXML: Update musicxml2ly to use the new \tempo text dur=count function X-Git-Tag: release/2.11.50-1~12^2~4^2^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e18477adafa0360a9ff8fa89b2db7c15ed558169;p=lilypond.git 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. --- 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: