def label_leaves_in_expr_with_written_leaf_duration( expr, markup_direction=Down): r'''Label leaves in `expr` with writen leaf duration: :: >>> tuplet = Tuplet((2, 3), "c'8 d'8 e'8") >>> labeltools.label_leaves_in_expr_with_leaf_durations(tuplet) >>> f(tuplet) \times 2/3 { c'8 _ \markup { \column { \small 1/8 \small 1/12 } } d'8 _ \markup { \column { \small 1/8 \small 1/12 } } e'8 _ \markup { \column { \small 1/8 \small 1/12 } } } :: >>> show(tuplet) # doctest: +SKIP Returns none. ''' from abjad.tools import labeltools return labeltools.label_leaves_in_expr_with_leaf_durations( expr, label_durations=False, label_written_durations=True, markup_direction=markup_direction, )
def label_logical_ties_in_expr_with_logical_tie_duration( expr, markup_direction=Down): r'''Label logical ties in `expr` with logical tie durations: :: >>> staff = Staff(r"\times 2/3 { c'8 ~ c'8 c'8 ~ } c'8") >>> labeltools.label_logical_ties_in_expr_with_logical_tie_duration(staff) .. doctest:: >>> print format(staff) \new Staff { \times 2/3 { c'8 ~ _ \markup { \small 1/6 } c'8 c'8 ~ _ \markup { \small 5/24 } } c'8 } :: >>> show(staff) # doctest: +SKIP Returns none. ''' from abjad.tools import labeltools return labeltools.label_leaves_in_expr_with_leaf_durations( expr, label_durations=True, label_written_durations=False, markup_direction=markup_direction, )
def label_tie_chains_in_expr_with_written_tie_chain_duration(expr, markup_direction=Down): r"""Label tie chains in `expr` with written tie chain duration: :: >>> staff = Staff(r"\times 2/3 { c'8 ~ c'8 c'8 ~ } c'8") >>> labeltools.label_tie_chains_in_expr_with_written_tie_chain_duration( ... staff) .. doctest:: >>> f(staff) \new Staff { \times 2/3 { c'8 ~ _ \markup { \small 1/4 } c'8 c'8 ~ _ \markup { \small 1/4 } } c'8 } :: >>> show(staff) # doctest: +SKIP Returns none. """ from abjad.tools import labeltools return labeltools.label_leaves_in_expr_with_leaf_durations( expr, label_durations=False, label_written_durations=True, markup_direction=markup_direction )
def label_leaves_in_expr_with_written_leaf_duration(expr, markup_direction=Down): r'''Label leaves in `expr` with writen leaf duration: :: >>> tuplet = Tuplet((2, 3), "c'8 d'8 e'8") >>> labeltools.label_leaves_in_expr_with_leaf_durations(tuplet) >>> print(format(tuplet)) \times 2/3 { c'8 _ \markup { \column { \small 1/8 \small 1/12 } } d'8 _ \markup { \column { \small 1/8 \small 1/12 } } e'8 _ \markup { \column { \small 1/8 \small 1/12 } } } :: >>> show(tuplet) # doctest: +SKIP Returns none. ''' from abjad.tools import labeltools return labeltools.label_leaves_in_expr_with_leaf_durations( expr, label_durations=False, label_written_durations=True, markup_direction=markup_direction, )
def label_logical_ties_in_expr_with_logical_tie_duration( expr, markup_direction=Down): r'''Label logical ties in `expr` with logical tie durations: :: >>> staff = Staff(r"\times 2/3 { c'8 ~ c'8 c'8 ~ } c'8") >>> labeltools.label_logical_ties_in_expr_with_logical_tie_duration(staff) .. doctest:: >>> print(format(staff)) \new Staff { \times 2/3 { c'8 ~ _ \markup { \small 1/6 } c'8 c'8 ~ _ \markup { \small 5/24 } } c'8 } :: >>> show(staff) # doctest: +SKIP Returns none. ''' from abjad.tools import labeltools return labeltools.label_leaves_in_expr_with_leaf_durations( expr, label_durations=True, label_written_durations=False, markup_direction=markup_direction, )