]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/abc2ly.py
release: 1.3.62
[lilypond.git] / scripts / abc2ly.py
index 422e2280b3c0bfbc52ca5011616773fcacf96233..e592f9f38fa5756dd878f11216be5d63d047cf2e 100644 (file)
@@ -48,7 +48,7 @@
 program_name = 'abc2ly'
 version = '@TOPLEVEL_VERSION@'
 if version == '@' + 'TOPLEVEL_VERSION' + '@':
-       version = '1.2.9'               # uGUHGUHGHGUGH
+       version = '(unknown version)'           # uGUHGUHGHGUGH
   
 import __main__
 import getopt
@@ -310,7 +310,7 @@ def lily_key (k):
                key = key + 'es'
                k = k[1:]
        if not k:
-               return(key)
+               return '%s \\major' % key
 
        type = k[0:3]
        if key_lookup.has_key(type):
@@ -516,7 +516,7 @@ def try_parse_header_line (ln, state):
                                        check_clef(m.group(2))
                                else:
                                        __main__.global_key  =compute_key (a)# ugh.
-                                       voices_append ('\\key %s;' % lily_key(a))
+                                       voices_append ('\\key %s \\major;' % lily_key(a))
                if g == 'O': # Origin
                        header ['origin'] = a
                if g == 'X': # Reference Number