Skip to content

Commit a1eb5d3

Browse files
committed
Cleaned up docstrings for Abjad 3.16.
1 parent 12b5b0c commit a1eb5d3

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

abjadext/nauert/qeventsequence.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,21 @@ def from_tempo_scaled_durations(
368368
r"""
369369
Changes ``durations``, scaled by ``tempo`` into a ``QEventSequence``:
370370
371-
>>> tempo = abjad.MetronomeMark((1, 4), 174)
372-
>>> durations = [(1, 4), (-3, 16), (1, 16), (-1, 2)]
373-
>>> sequence = nauert.QEventSequence.from_tempo_scaled_durations(
374-
... durations, tempo=tempo)
375-
376-
>>> for q_event in sequence:
377-
... q_event
378-
...
379-
PitchedQEvent(offset=Offset((0, 1)), pitches=(NamedPitch("c'"),), index=None, attachments=())
380-
SilentQEvent(offset=Offset((10000, 29)), index=None, attachments=())
381-
PitchedQEvent(offset=Offset((17500, 29)), pitches=(NamedPitch("c'"),), index=None, attachments=())
382-
SilentQEvent(offset=Offset((20000, 29)), index=None, attachments=())
383-
TerminalQEvent(offset=Offset((40000, 29)), index=None, attachments=())
371+
.. container:: example
372+
373+
>>> tempo = abjad.MetronomeMark((1, 4), 174)
374+
>>> durations = [(1, 4), (-3, 16), (1, 16), (-1, 2)]
375+
>>> sequence = nauert.QEventSequence.from_tempo_scaled_durations(
376+
... durations, tempo=tempo)
377+
378+
>>> for q_event in sequence:
379+
... q_event
380+
...
381+
PitchedQEvent(offset=Offset((0, 1)), pitches=(NamedPitch("c'"),), index=None, attachments=())
382+
SilentQEvent(offset=Offset((10000, 29)), index=None, attachments=())
383+
PitchedQEvent(offset=Offset((17500, 29)), pitches=(NamedPitch("c'"),), index=None, attachments=())
384+
SilentQEvent(offset=Offset((20000, 29)), index=None, attachments=())
385+
TerminalQEvent(offset=Offset((40000, 29)), index=None, attachments=())
384386
385387
"""
386388
durations = [abjad.Duration(x) for x in durations]
@@ -412,11 +414,7 @@ def from_tempo_scaled_leaves(class_, leaves, tempo=None) -> "QEventSequence":
412414
413415
>>> staff = abjad.Staff("c'4 <d' fs'>8. r16 gqs'2")
414416
>>> tempo = abjad.MetronomeMark((1, 4), 72)
415-
>>> sequence = nauert.QEventSequence.from_tempo_scaled_leaves(
416-
... staff[:],
417-
... tempo=tempo,
418-
... )
419-
417+
>>> sequence = nauert.QEventSequence.from_tempo_scaled_leaves(staff[:], tempo)
420418
>>> for q_event in sequence:
421419
... q_event
422420
...

abjadext/nauert/quantizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def quantize(
2020
r"""
2121
Quantizer function.
2222
23-
.. container:: example
23+
Quantizes sequences of attack-points, encapsulated by ``QEventSequences``,
24+
into score trees.
2425
25-
Quantizes sequences of attack-points, encapsulated by
26-
``QEventSequences``, into score trees.
26+
.. container:: example
2727
2828
>>> durations = [1000] * 8
2929
>>> pitches = range(8)

0 commit comments

Comments
 (0)