neoscore.western.staff_object

class neoscore.western.staff_object.StaffObject[source]

Bases: object

An object which must always be the descendant of an AbstractStaff.

This is a mixin class for PositionedObject classes.

__init__(parent: PositionedObject)[source]
property staff: AbstractStaff

The ancestor staff

property pos_in_staff: Point

The logical position of this object relative to the staff.

property pos_x_in_staff: Unit

A specialized version of pos_in_staff which only finds the x pos