summaryrefslogtreecommitdiff
path: root/scripts/midi2ly.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/midi2ly.py')
-rw-r--r--scripts/midi2ly.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/midi2ly.py b/scripts/midi2ly.py
index f4a47fb79a..5358fc4698 100644
--- a/scripts/midi2ly.py
+++ b/scripts/midi2ly.py
@@ -32,7 +32,6 @@ import sys
@relocate-preamble@
"""
-import midi
import lilylib as ly
global _;_=ly._
@@ -923,6 +922,9 @@ class Staff:
return dump_track (self.voices, i)
def convert_midi (in_file, out_file):
+ global midi
+ import midi
+
global clocks_per_1, clocks_per_4, key
global start_quant_clocks
global duration_quant_clocks