diff --git a/generate-mpe.py b/generate-mpe.py index ea7bc32..e77e675 100644 --- a/generate-mpe.py +++ b/generate-mpe.py @@ -59,8 +59,8 @@ first_tick = 1e9 for row in reader: - staff = int(row[0]) - tick = int(row[2]) + staff = int(float(row[0])) + tick = int(float(row[2])) if staff > max_staff: max_staff = staff @@ -76,7 +76,7 @@ if staff_notes.get(staff) is None: staff_notes[staff] = [] - staff_notes[staff].append([int(row[1]), tick, int(row[3]), int(row[4]), float(row[5])]) + staff_notes[staff].append([int(float(row[1])), tick, int(float(row[3])), int(float(row[4])), float(row[5])]) if max_staff == -1: print("No notes found. Not exporting anything.") @@ -132,4 +132,4 @@ exit() except FileNotFoundError: print("ERROR: File not found.") - exit() \ No newline at end of file + exit()