]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/midi2ly.py
Also cache fixed_spacing.
[lilypond.git] / scripts / midi2ly.py
index afe5c5af3550b3c8a4f106acebc28df91d17ad52..9ce050b0a7e892621fe2c216903cd7b05249839d 100644 (file)
@@ -817,7 +817,8 @@ def convert_midi (in_file, out_file):
     global allowed_tuplet_clocks
 
     str = open (in_file, 'rb').read ()
-    midi_dump = midi.parse (str)
+    clocks_max = bar_max * clocks_per_1 * 2
+    midi_dump = midi.parse (str, clocks_max)
 
     clocks_per_1 = midi_dump[0][1]
     clocks_per_4 = clocks_per_1 / 4