Skip to content

Commit

Permalink
Merge pull request #6 from Gnostiquette/patch-1
Browse files Browse the repository at this point in the history
fix bug in generate-mpe.py
  • Loading branch information
euwbah authored Oct 17, 2023
2 parents c116530 + eca89fe commit 248528e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generate-mpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.")
Expand Down Expand Up @@ -132,4 +132,4 @@
exit()
except FileNotFoundError:
print("ERROR: File not found.")
exit()
exit()

0 comments on commit 248528e

Please sign in to comment.