@@ -368,19 +368,21 @@ def from_tempo_scaled_durations(
368
368
r"""
369
369
Changes ``durations``, scaled by ``tempo`` into a ``QEventSequence``:
370
370
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=())
384
386
385
387
"""
386
388
durations = [abjad .Duration (x ) for x in durations ]
@@ -412,11 +414,7 @@ def from_tempo_scaled_leaves(class_, leaves, tempo=None) -> "QEventSequence":
412
414
413
415
>>> staff = abjad.Staff("c'4 <d' fs'>8. r16 gqs'2")
414
416
>>> 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)
420
418
>>> for q_event in sequence:
421
419
... q_event
422
420
...
0 commit comments