class StaffObj

Last modified: October 27, 2015

Contents

StaffObj

In module gamera.toolkits.musicstaves.musicstaves

Contains the following positional information of a staff system:

staffno:
staff number, from top to bottom, starting with one
yposlist:
list of y-positions of the stafflines
staffrect:
rectangle (Gamera type Rect) containing this staff system

A list of StaffObj is the return value of MusicStaves.get_staffpos.

__init__

The constructor has no arguments. All values are accessed directly:

so = StaffObj()
so.staffno = current_staffno
so.yposlist = ['12','20','29','36']
ymin = yposlist[0]; ymax = yposlist[-1]
so.staffrect = Rect((xmin, ymin), Dim(staffwidth, ymax - ymin))