]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/midi2ly.py
Admin: run yearly grand-replace.
[lilypond.git] / scripts / midi2ly.py
index beb4cec7af0a8cded98d783531ebeefac2be2018..86c32badfaba276ecb96e6571953e4f4b641412d 100644 (file)
@@ -4,7 +4,7 @@
 
 # This file is part of LilyPond, the GNU music typesetter.
 #
-# Copyright (C) 1998--2009  Han-Wen Nienhuys <hanwen@xs4all.nl>
+# Copyright (C) 1998--2011  Han-Wen Nienhuys <hanwen@xs4all.nl>
 #                 Jan Nieuwenhuizen <janneke@gnu.org>
 #
 # LilyPond is free software: you can redistribute it and/or modify
@@ -87,7 +87,7 @@ def warranty ():
 
 %s
 %s
-''' % ( _ ('Copyright (c) %s by') % '2001--2009',
+''' % ( _ ('Copyright (c) %s by') % '2001--2011',
         '\n  '.join (authors),
         _ ('Distributed under terms of the GNU General Public License.'),
         _ ('It comes with NO WARRANTY.')))
@@ -801,7 +801,7 @@ def convert_midi (in_file, out_file):
     global  duration_quant_clocks
     global allowed_tuplet_clocks
 
-    str = open (in_file).read ()
+    str = open (in_file, 'rb').read ()
     midi_dump = midi.parse (str)
     
     clocks_per_1 = midi_dump[0][1]
@@ -826,7 +826,7 @@ def convert_midi (in_file, out_file):
 
     
     s = ''
-    s = tag + '\n\\version "2.7.18"\n\n'
+    s = tag + '\n\\version "2.7.38"\n\n'
     for i in range (len (tracks)):
         s = s + dump_track (tracks[i], i)