qevents
Abstract Classes
Abstract Q-event. |
- abstract class abjadext.nauert.qevents.QEvent(offset: Offset | int | float | tuple[int, int] = 0, index: int | None = None, attachments: Iterable | None = None)[source]
Abstract Q-event.
Represents an attack point to be quantized.
All
QEvents
possess a rational offset in milliseconds, and an optional index for disambiguating events which fall on the same offset in aQGrid
.Attributes Summary
Is true when epxr is a q-event with offset greater than that of this q-event.
Gets repr.
The attachments of the QEvent.
The optional index, for sorting QEvents with identical offsets.
The offset in milliseconds of the event.
Special methods
- overridden __lt__(argument) bool [source]
Is true when epxr is a q-event with offset greater than that of this q-event. Otherwise false.
Class & static methods
Read-only properties
- attachments
The attachments of the QEvent.
- index
The optional index, for sorting QEvents with identical offsets.
- offset
The offset in milliseconds of the event.
Classes
Pitched q-event. |
|
Silent q-event. |
|
Terminal q-event. |
- class abjadext.nauert.qevents.PitchedQEvent(offset: Offset | int | float | tuple[int, int] = 0, pitches: Iterable[int | float] | None = None, attachments: Iterable | None = None, index: int | None = None)[source]
Pitched q-event.
Indicates the onset of a period of pitched material in a q-event sequence.
>>> pitches = [0, 1, 4] >>> nauert.PitchedQEvent(1000, pitches) PitchedQEvent(offset=Offset((1000, 1)), pitches=(NamedPitch("c'"), NamedPitch("cs'"), NamedPitch("e'")), index=None, attachments=())
Attributes Summary
Is true when argument is a pitched q-event with offset, pitches, attachments and index equal to those of this pitched q-event.
Hashes pitched q-event.
Gets repr.
Attachments of pitched q-event.
Pitches of pitched q-event.
Special methods
- overridden __eq__(argument) bool [source]
Is true when argument is a pitched q-event with offset, pitches, attachments and index equal to those of this pitched q-event. Otherwise false.
- overridden __hash__() int [source]
Hashes pitched q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
Class & static methods
Read-only properties
- overridden attachments
Attachments of pitched q-event.
- pitches
Pitches of pitched q-event.
- class abjadext.nauert.qevents.SilentQEvent(offset: Offset | int | float | tuple[int, int] = 0, attachments: Iterable | None = None, index: int | None = None)[source]
Silent q-event.
>>> q_event = nauert.SilentQEvent(1000) >>> q_event SilentQEvent(offset=Offset((1000, 1)), index=None, attachments=())
Attributes Summary
Is true when argument is a silent q-event with offset, attachments and index equal to those of this silent q-event.
Hashes silent q-event.
Gets attachments of silent q-event.
Special methods
- overridden __eq__(argument) bool [source]
Is true when argument is a silent q-event with offset, attachments and index equal to those of this silent q-event. Otherwise false.
- overridden __hash__() int [source]
Hashes silent q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
Class & static methods
Read-only properties
- overridden attachments
Gets attachments of silent q-event.
- class abjadext.nauert.qevents.TerminalQEvent(offset: Offset | int | float | tuple[int, int] = 0)[source]
Terminal q-event.
>>> nauert.TerminalQEvent(1000) TerminalQEvent(offset=Offset((1000, 1)), index=None, attachments=())
Carries no significance outside the context of a
QEventSequence
.Attributes Summary
Is true when argument is a terminal q-event with offset equal to that of this terminal q-event.
Hashes terminal q-event.
Special methods
- overridden __eq__(argument) bool [source]
Is true when argument is a terminal q-event with offset equal to that of this terminal q-event. Otherwise false.
- overridden __hash__() int [source]
Hashes terminal q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
Class & static methods
Read-only properties