qeventproxy¶
Classes
Q-event proxy. |
- class abjadext.nauert.qeventproxy.QEventProxy(q_event=None, *offsets)[source]¶
Q-event proxy.
Maps Q-event offset with the range of its beatspan to the range 0-1.
>>> q_event = nauert.PitchedQEvent(130, [0, 1, 4]) >>> nauert.QEventProxy(q_event, 0.5) QEventProxy(q_event=PitchedQEvent(offset=Offset((130, 1)), pitches=(NamedPitch("c'"), NamedPitch("cs'"), NamedPitch("e'")), index=None, attachments=()), offset=Offset((1, 2)))
Not composer-safe.
Used internally by the
quantize
function.Attributes Summary
Is true when argument is a q-event proxy with offset and q-event equal to those of this q-event proxy.
Hashes q-event proxy.
Gets repr.
Index of q-event proxy.
Offset of q-event proxy.
Q-event of q-event proxy.
Special methods
- overridden __eq__(argument)[source]¶
Is true when argument is a q-event proxy with offset and q-event equal to those of this q-event proxy. Otherwise false.
- Return type:
- overridden __hash__()[source]¶
Hashes q-event proxy.
Required to be explicitly redefined on Python 3 if __eq__ changes.
- Return type:
Read-only properties
- index¶
Index of q-event proxy.
- offset¶
Offset of q-event proxy.
- q_event¶
Q-event of q-event proxy.