SequentialEvent
SequentialEvent(duration: Duration | None = None)An OmkObject that takes up time and can be placed in sequence (with NEXT edges).
The duration is a length, so it cannot be negative, however it is set:
>>> from openmusickit.systems.wsmn.temporal.symbols import quarter
>>> SequentialEvent(duration=-quarter)
Traceback (most recent call last):
...
ValueError: A SequentialEvent cannot have a negative duration: MetricalDuration(-1, 4)Attributes
| Name | Description |
|---|---|
| meta | |
| id | |
| duration |
Methods
| Name | Description |
|---|---|
__setattr__ |
|
| alter_duration |
__setattr__
__setattr__(name: str, value: Any)alter_duration
alter_duration(operation: Callable[[Duration, Any], Duration], operand: Any)