]> git.donarmstrong.com Git - lilypond.git/commitdiff
MusicXML: Update musicxml2ly to use the new \tempo text dur=count function
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 28 Jun 2008 12:23:24 +0000 (14:23 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 28 Jun 2008 12:23:24 +0000 (14:23 +0200)
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

index c653c5cb7944e664c9130caebc66a5e280f199a0..e73f78b1a4d92fb457792eb237a2341dab8b594a 100644 (file)
@@ -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: