sorbetto.performance.abstract_score module

class sorbetto.performance.abstract_score.AbstractScore(default_name: str, default_abbreviation: str | None, default_symbol: str | None, name: str | None = None, abbreviation: str | None = None, symbol: str | None = None)[source]

Bases: ABC

property abbreviation: str | None
property longLabel: str
property name: str
rename(name: str | None = None, abbreviation: str | None = None, symbol: str | None = None) None[source]

Set the name, abbreviation, and symbol of the score. It is not allowed to set the abbreviation or symbol without giving a name too.

Parameters:
  • name (str | None, optional) – the new name. Defaults to None.

  • abbreviation (str | None, optional) – the new abbreviation. Defaults to None.

  • symbol (str | None, optional) – the new symbol. Defaults to None.

Raises:

ValueError – if name is None and abbreviation or symbol are not None.

property shortLabel: str
property symbol: str | None