]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/midi.c
MusicXML: Implement support for transposed instruments
[lilypond.git] / python / midi.c
index facf06446a3e1ae2f2399c593b7714cc20c05701..d9febf7aa3c0173765228b1e27b032b682bf561c 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2001--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2001--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
             Jan Nieuwenhuizen <janneke@gnu.org>
 
 */
@@ -304,10 +304,10 @@ midi_parse_track (unsigned char **track, unsigned char *track_end)
 
   {  
     PyObject *pytime = PyInt_FromLong (0L);
+    unsigned char running_status = 0;
+       
     while (*track < track_end)
       {
-       unsigned char running_status = 0;
-       
        long dt = get_variable_length_number(track, track_end);
        PyObject *pyev = 0;