qevents

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_abc { graph [label=abc]; node [color=1]; "abc.ABC" [URL="https://docs.python.org/3.10/library/abc.html#abc.ABC", label=ABC, target=_top]; } subgraph "cluster_abjadext.nauert.qevents" { graph [label="abjadext.nauert.qevents"]; node [color=2]; "abjadext.nauert.qevents.PitchedQEvent" [URL="../api/abjadext/nauert/qevents.html#abjadext.nauert.qevents.PitchedQEvent", color=black, fontcolor=white, label="Pitched\nQEvent", target=_top]; "abjadext.nauert.qevents.QEvent" [URL="../api/abjadext/nauert/qevents.html#abjadext.nauert.qevents.QEvent", color=black, fontcolor=white, label=QEvent, shape=oval, style="bold, filled", target=_top]; "abjadext.nauert.qevents.SilentQEvent" [URL="../api/abjadext/nauert/qevents.html#abjadext.nauert.qevents.SilentQEvent", color=black, fontcolor=white, label="Silent\nQEvent", target=_top]; "abjadext.nauert.qevents.TerminalQEvent" [URL="../api/abjadext/nauert/qevents.html#abjadext.nauert.qevents.TerminalQEvent", color=black, fontcolor=white, label="Terminal\nQEvent", target=_top]; "abjadext.nauert.qevents.QEvent" -> "abjadext.nauert.qevents.PitchedQEvent"; "abjadext.nauert.qevents.QEvent" -> "abjadext.nauert.qevents.SilentQEvent"; "abjadext.nauert.qevents.QEvent" -> "abjadext.nauert.qevents.TerminalQEvent"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.10/library/functions.html#object", label=object, target=_top]; } "abc.ABC" -> "abjadext.nauert.qevents.QEvent"; "builtins.object" -> "abc.ABC"; }


Abstract Classes

QEvent

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 a QGrid.


Attributes Summary

__lt__

Is true when epxr is a q-event with offset greater than that of this q-event.

__repr__

Gets repr.

attachments

The attachments of the QEvent.

index

The optional index, for sorting QEvents with identical offsets.

offset

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:

bool

overridden __repr__()[source]

Gets repr.


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

PitchedQEvent

Pitched q-event.

SilentQEvent

Silent q-event.

TerminalQEvent

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

__eq__

Is true when argument is a pitched q-event with offset, pitches, attachments and index equal to those of this pitched q-event.

__hash__

Hashes pitched q-event.

__repr__

Gets repr.

attachments

Attachments of pitched q-event.

pitches

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:

bool

overridden __hash__()[source]

Hashes pitched q-event.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Return type:

int

(QEvent).__lt__(argument)

Is true when epxr is a q-event with offset greater than that of this q-event. Otherwise false.

Return type:

bool

overridden __repr__()[source]

Gets repr.


Read-only properties

overridden attachments

Attachments of pitched q-event.

(QEvent).index

The optional index, for sorting QEvents with identical offsets.

(QEvent).offset

The offset in milliseconds of the 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

__eq__

Is true when argument is a silent q-event with offset, attachments and index equal to those of this silent q-event.

__hash__

Hashes silent q-event.

attachments

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:

bool

overridden __hash__()[source]

Hashes silent q-event.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Return type:

int

(QEvent).__lt__(argument)

Is true when epxr is a q-event with offset greater than that of this q-event. Otherwise false.

Return type:

bool

(QEvent).__repr__()

Gets repr.


Read-only properties

overridden attachments

Gets attachments of silent q-event.

(QEvent).index

The optional index, for sorting QEvents with identical offsets.

(QEvent).offset

The offset in milliseconds of the 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

__eq__

Is true when argument is a terminal q-event with offset equal to that of this terminal q-event.

__hash__

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:

bool

overridden __hash__()[source]

Hashes terminal q-event.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Return type:

int

(QEvent).__lt__(argument)

Is true when epxr is a q-event with offset greater than that of this q-event. Otherwise false.

Return type:

bool

(QEvent).__repr__()

Gets repr.


Read-only properties

(QEvent).attachments

The attachments of the QEvent.

(QEvent).index

The optional index, for sorting QEvents with identical offsets.

(QEvent).offset

The offset in milliseconds of the event.