pymusicxml.score_components.NumberedSpanner

class pymusicxml.score_components.NumberedSpanner(label: Any = 1)[source]

Bases: ABC

Abstract base class for part of a Direction or Notation that spans multiple time-points.

Parameters:

label – A label distinguishing this spanner from others of the same type, so that a start and its stop can be paired (a stop’s label should match its start’s). In the MusicXML standard this is a number from 1 to 6, but pymusicxml allows anything (e.g. a string); labels are converted to numbers on export.