Skip to content

Commit dd0b316

Browse files
authored
Merge pull request #90 from eoma/fix-ensure-tempo-is-integer
MusicXML: tempo number should be integer
2 parents 1cd3260 + a3ad322 commit dd0b316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ly/musicxml/create_musicxml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ def add_metron_dir(self, unit, beats, dots):
614614
pmnode.text = str(beats)
615615

616616
def add_sound_dir(self, midi_tempo):
617-
soundnode = etree.SubElement(self.direction, "sound", tempo=str(midi_tempo))
617+
# FIXME: remove the int conversion once LilyPond accepts decimal tempo
618+
soundnode = etree.SubElement(self.direction, "sound", tempo=str(int(midi_tempo)))
618619

619620
def add_lyric(self, txt, syll, nr, ext=False):
620621
""" Add lyric element. """

0 commit comments

Comments
 (0)