qevents
Abstract Classes
Abstract Q-event. |
- abstract class nauert.qevents.QEvent(offset: Offset = Offset(Fraction(0, 1)), index: int | None = None, attachments: Iterable = ())[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.
Methods
Class & static methods
Read-only properties
- attachments
The attachments of the QEvent.
- index
The optional index, for sorting QEvents with identical offsets.
Classes
Pitched q-event. |
|
Silent q-event. |
|
Terminal q-event. |
- class nauert.qevents.PitchedQEvent(offset: Offset = Offset(Fraction(0, 1)), pitches: Iterable[int | float] = (), attachments: Iterable = (), 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(abjad.duration.offset(1000), pitches) PitchedQEvent(offset=Offset(Fraction(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.
Gets attachments of pitched q-event.
Gets 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.
Methods
Class & static methods
Read-only properties
- overridden attachments
Gets attachments of pitched q-event.
- pitches
Gets pitches of pitched q-event.
- class nauert.qevents.SilentQEvent(offset: Offset = Offset(Fraction(0, 1)), attachments: Iterable = (), index: int | None = None)[source]
Silent q-event.
>>> q_event = nauert.SilentQEvent(abjad.duration.offset(1000)) >>> q_event SilentQEvent(offset=Offset(Fraction(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.
Methods
Class & static methods
Read-only properties
- overridden attachments
Gets attachments of silent q-event.
- class nauert.qevents.TerminalQEvent(offset: Offset = Offset(Fraction(0, 1)))[source]
Terminal q-event.
>>> nauert.TerminalQEvent(abjad.duration.offset(1000)) TerminalQEvent(offset=Offset(Fraction(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.
Methods
Class & static methods
Read-only properties