Skip to content

Commit

Permalink
Minor edit to avoid bug with string to float.
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Jan 15, 2025
1 parent aa7cb61 commit f2cd101
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions partitura/io/importkern.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ def _process_kern_duration(self, duration: str, is_grace=False):
dur = dur.split("%")
nom, den = int(dur[0]), int(dur[1])
symbolic_duration = {"type": "whole", "dots": 0, "actual_notes": nom, "normal_notes": den}
dur = nom * den
else:
dur = float(dur)
key_loolup = [2**i for i in range(0, 9)]
Expand Down

0 comments on commit f2cd101

Please sign in to comment.