brown.core.multi_staff_object

classes

permalink view source

MultiStaffObject

An object which spans several staves.

This is a Mixin class, meant to be combined with GraphicObject classes.

MultiStaffObjects must have their visually highest staff as their parent.

If an class is both a MultiStaffObject and a StaffObject, the parent staff should be the visually highest staff listed in self.staves.

__init__ (staves) permalink view source

arguments:

staves (set(Staff)): The set of Staff objects this belongs to.

properties

visually_sorted_staves: list[Staff] self.staves as a list in visually descending order permalink view source

read-only.

highest_staff: Staff The visually highest staff in self.staves permalink view source

read-only.

lowest_staff: Staff The visually lowest staff in self.staves permalink view source

read-only.

vertical_span: StaffUnit The vertical distance covered by the staves permalink view source

The distance from the top of self.highest_staff to the bottom of self.lowest_staff, in self.highest_staff.unit StaffUnits.

read-only.