class StafflineAverage

Last modified: October 27, 2015

Contents

StafflineAverage

In module gamera.toolkits.musicstaves.stafffinder

Represents a staff line as a single y-value and contains the following positional information as public properties:

left_x, right_x:
x-position of left and right edge
average_y:
average y-position of the staffline
variance_y:
variance in the y-position of the staffline

__init__

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

to_average

Converts to StafflineAverage. Thus simply returns self.

to_polygon

Converts to StafflinePolygon.

The optional parameter tolerance is offered for compatibility to StafflineSkeleton, but has no effect on the return value.

to_skeleton

Converts to StafflineSkeleton.