PitchedQEvent

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_abjad.system" { graph [label="abjad.system"]; node [color=1]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjadext/nauert/../../abjad/system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; } subgraph "cluster_abjadext.nauert" { graph [label="abjadext.nauert"]; node [color=2]; "abjadext.nauert.PitchedQEvent.PitchedQEvent" [URL="../api/abjadext/nauert/PitchedQEvent.html#abjadext.nauert.PitchedQEvent.PitchedQEvent", color=black, fontcolor=white, label="Pitched\nQEvent", target=_top]; "abjadext.nauert.QEvent.QEvent" [URL="../api/abjadext/nauert/QEvent.html#abjadext.nauert.QEvent.QEvent", label=QEvent, shape=oval, style=bold, target=_top]; "abjadext.nauert.QEvent.QEvent" -> "abjadext.nauert.PitchedQEvent.PitchedQEvent"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadObject.AbjadObject" -> "abjadext.nauert.QEvent.QEvent"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjadext.nauert.PitchedQEvent.PitchedQEvent(offset=0, pitches=None, attachments=None, index=None)

Pitched q-event.

Indicates the onset of a period of pitched material in a q-event sequence.

>>> pitches = [0, 1, 4]
>>> q_event = abjadext.nauert.PitchedQEvent(1000, pitches)
>>> abjad.f(q_event)
abjadext.nauert.PitchedQEvent(
    offset=abjad.Offset(1000, 1),
    pitches=(
        abjad.NamedPitch("c'"),
        abjad.NamedPitch("cs'"),
        abjad.NamedPitch("e'"),
        ),
    )

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.
attachments Attachments of pitched q-event.
pitches Pitches of pitched q-event.

Special methods

__eq__(argument)

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.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

__hash__()

Hashes pitched q-event.

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

Returns integer.

(QEvent).__lt__(argument)

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

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.


Read-only properties

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.