qevents¶
Abstract Classes
Abstract Q-event. |
- abstract class abjadext.nauert.qevents.QEvent(offset=0, index=None, attachments=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)[source]¶
Is true when epxr is a q-event with offset greater than that of this q-event. Otherwise false.
- Return type:
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=0, pitches=None, attachments=None, index=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)[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.
- Return type:
- overridden __hash__()[source]¶
Hashes pitched q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
- Return type:
Read-only properties
- overridden attachments¶
Attachments of pitched q-event.
- pitches¶
Pitches of pitched q-event.
- class abjadext.nauert.qevents.SilentQEvent(offset=0, attachments=None, index=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)[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.
- Return type:
- overridden __hash__()[source]¶
Hashes silent q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
- Return type:
Read-only properties
- overridden attachments¶
Gets attachments of silent q-event.
- class abjadext.nauert.qevents.TerminalQEvent(offset=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)[source]¶
Is true when argument is a terminal q-event with offset equal to that of this terminal q-event. Otherwise false.
- Return type:
- overridden __hash__()[source]¶
Hashes terminal q-event.
Required to be explicitly redefined on Python 3 if __eq__ changes.
- Return type:
Read-only properties