class StafflineSkeleton

Last modified: October 27, 2015

Contents

StafflineSkeleton

In module gamera.toolkits.musicstaves.stafffinder

Represents a staff line as a skeleton, i.e. a one point thick continuous path. The positional information of the path is stored in the following public properties:

left_x:
left most x-position of the sekeleton
y_list:
list of subsequent y-positions from left to right

Consequently the right most x-position of the skeleton is left_x + len(y_list).

__init__

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

to_average

Converts to StafflineAverage.

to_polygon

Converts to StafflinePolygon. Not yet implemeted.

The parameter tolerance controls how accurate the polygonal approximation is.

to_skeleton

Converts to StafflineSkeleton. Thus simply returns self.