Skip to content

Commit

Permalink
removed unused globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Jan 15, 2025
1 parent 2ce5296 commit aa7cb61
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions partitura/io/importkern.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@
}

KERN_DURS = {
"3%2": {"type": "whole", "dots": 0, "actual_notes": 3, "normal_notes": 2},
"2%3": {"type": "whole", "dots": 1},
"4%3": {"type": "whole", "dots": 1},
"8%3": {"type": "quarter", "dots": 1},
"16%3": {"type": "eighth", "dots": 1},
"32%3": {"type": "16th", "dots": 1},
"64%3": {"type": "32nd", "dots": 1},
"128%3": {"type": "64th", "dots": 1},
"000": {"type": "maxima"},
"00": {"type": "long"},
"0": {"type": "breve"},
Expand Down Expand Up @@ -712,6 +704,7 @@ def _process_kern_duration(self, duration: str, is_grace=False):
dur = duration.replace(".", "")
if dur in KERN_DURS.keys():
symbolic_duration = copy.deepcopy(KERN_DURS[dur])
# support for extended kern durations
elif "%" in dur:
dur = dur.split("%")
nom, den = int(dur[0]), int(dur[1])
Expand Down

0 comments on commit aa7cb61

Please sign in to comment.