pymusicxml.directions.Degree

class pymusicxml.directions.Degree(value: int, alter: int, degree_type: str = 'alter', print_object: bool = True)[source]

Bases: object

The <degree> element is used to add, alter, or subtract individual notes in the chord.

Parameters:
  • value – The number of the degree, a positive integer.

  • alter – An integer meaning alteration by semitones.

  • degree_type – Type of alteration. A positive alter + ‘subtract’ = semitone down.

  • print_object – Whether to print the degree or not.

Methods

render()

Attributes

DEGREE_TYPES

DEGREE_TYPES = ('add', 'alter', 'subtract')
render() Sequence[Element][source]