TemporalSystem

TemporalSystem(name: str, description: str, universal: bool = False)

A named system of musical time (see TonalSystem for the tonal counterpart).

Every Duration reports its system through temporal_system, so that code combining durations can refuse to mix systems. A universal system is one whose elements belong to no system in particular (a ZeroDuration) and may be combined with anything.

>>> from openmusickit.systems.wsmn.temporal.symbols import quarter
>>> quarter.temporal_system.name
'Western Standard Music Notation'
>>> ANY_TEMPORAL_SYSTEM.universal
True

Attributes

Name Description
name
description
universal

Methods

Name Description
compatible_with True if elements of the two systems may be combined:

compatible_with

compatible_with(other: TemporalSystem)

True if elements of the two systems may be combined: the same system, or either one universal.

>>> from openmusickit.values.time.clock_time import CLOCK_TIME
>>> from openmusickit.systems.wsmn.temporal.wsmn import WSMN_TEMPORAL
>>> WSMN_TEMPORAL.compatible_with(CLOCK_TIME)
False
>>> WSMN_TEMPORAL.compatible_with(ANY_TEMPORAL_SYSTEM)
True