leaftools.leaf_to_diminished_tuplet_with_n_notes_of_equal_written_duration

abjad.tools.leaftools.leaf_to_diminished_tuplet_with_n_notes_of_equal_written_duration.leaf_to_diminished_tuplet_with_n_notes_of_equal_written_duration(leaf, n)[source]

New in version 2.0.

Change leaf to diminished tuplet with n notes of equal written duration:

abjad> for n in range(1, 11):
...     note = Note(0, (3, 16))
...     tuplet = leaftools.leaf_to_diminished_tuplet_with_n_notes_of_equal_written_duration(note, n)
...     print tuplet
...
{@ 1:1 c'8. @}
{@ 1:1 c'16., c'16. @}
{@ 1:1 c'16, c'16, c'16 @}
{@ 1:1 c'32., c'32., c'32., c'32. @}
{@ 5:4 c'32., c'32., c'32., c'32., c'32. @}
{@ 1:1 c'32, c'32, c'32, c'32, c'32, c'32 @}
{@ 7:4 c'32., c'32., c'32., c'32., c'32., c'32., c'32. @}
{@ 1:1 c'64., c'64., c'64., c'64., c'64., c'64., c'64., c'64. @}
{@ 3:2 c'32, c'32, c'32, c'32, c'32, c'32, c'32, c'32, c'32 @}
{@ 5:4 c'64., c'64., c'64., c'64., c'64., c'64., c'64., c'64., c'64., c'64. @}

Return diminished fixed-duration tuplet.

This Page