Change staff parameter to use _wire_int_optional

(cherry picked from commit 64656bda1edc3fe03b6ad5e747c7afa3abca31d6)
This commit is contained in:
zagatozee
2026-06-17 23:42:08 -07:00
committed by Bret Mogilefsky
parent bd22951874
commit 2d79e216b3
+1 -1
View File
@@ -310,7 +310,7 @@ def note_from_wire(d: dict, time: float | None = None) -> Note:
right_hand=_wire_int_optional(d.get("rh"), -1),
pick_direction=_wire_int_optional(d.get("pkd"), -1),
ignore=bool(d.get("ig", False)),
staff=int(d.get("stf", -1)),
staff=_wire_int_optional(d.get("stf"), -1),
)