marktools.attach_lilypond_command_marks_to_components_in_expr

abjad.tools.marktools.attach_lilypond_command_marks_to_components_in_expr.attach_lilypond_command_marks_to_components_in_expr(expr, lilypond_command_marks)[source]

New in version 2.3.

Attach lilypond_command_marks to components in expr:

abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> lilypond_command_mark = marktools.LilyPondCommandMark('stemUp')
abjad> marktools.attach_lilypond_command_marks_to_components_in_expr(staff.leaves, [lilypond_command_mark])
abjad> f(staff)
\new Staff {
    \stemUp
    c'8
    \stemUp
    d'8
    \stemUp
    e'8
    \stemUp
    f'8
}

Return none.

This Page