X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fmidi.c;h=890798c66a4f022139013c81e641b743756aef15;hb=9e781b7dc83b60a543ce218aa1a5f139f74c760f;hp=187268b78efc105fe44dfdeee9c345ea781a3c05;hpb=f2fbf0dd215c8af6a30aae6c9634f3b92333b0ab;p=lilypond.git diff --git a/python/midi.c b/python/midi.c index 187268b78e..890798c66a 100644 --- a/python/midi.c +++ b/python/midi.c @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2001--2011 Han-Wen Nienhuys + Copyright (C) 2001--2014 Han-Wen Nienhuys Jan Nieuwenhuizen @@ -356,7 +356,7 @@ static PyObject * pymidi_parse_track (PyObject *self, PyObject *args) { unsigned char *track, *track_end; - unsigned long track_size; + int track_size; int clocks_max; debug_print ("%s", "\n"); @@ -398,9 +398,11 @@ midi_parse (unsigned char **midi,unsigned char *midi_end, int clocks_max) division = get_number (midi, *midi + 2, 2) * 4; + /* if (division < 0) - /* return midi_error (cannot handle non-metrical time"); */ + return midi_error (cannot handle non-metrical time"); ; + */ *midi += header_len - 6; pymidi = PyList_New (0);