verticalitytools.label_vertical_moments_in_expr_with_numbered_chromatic_pitch_classes

abjad.tools.verticalitytools.label_vertical_moments_in_expr_with_numbered_chromatic_pitch_classes.label_vertical_moments_in_expr_with_numbered_chromatic_pitch_classes(expr, markup_direction='down')[source]

New in version 2.0.

Label pitch-classes of every vertical moment in expr:

abjad> from abjad.tools import verticalitytools
abjad> score = Score(Staff([]) * 3)
abjad> notes = [Note("c'8"), Note("d'8"), Note("e'8"), Note("f'8")]
abjad> score[0].extend(notes)
abjad> contexttools.ClefMark('alto')(score[1])
ClefMark('alto')(Staff{})
abjad> score[1].extend([Note(-5, (1, 4)), Note(-7, (1, 4))])
abjad> contexttools.ClefMark('bass')(score[2])
ClefMark('bass')(Staff{})
abjad> score[2].append(Note(-24, (1, 2)))
abjad> verticalitytools.label_vertical_moments_in_expr_with_numbered_chromatic_pitch_classes(score)
abjad> f(score)
\new Score <<
    \new Staff {
        c'8
        d'8 _ \markup { \small { \column { 7 2 0 } } }
        e'8
        f'8 _ \markup { \small { \column { 5 0 } } }
    }
    \new Staff {
        \clef "alto"
        g4
        f4 _ \markup { \small { \column { 5 4 0 } } }
    }
    \new Staff {
        \clef "bass"
        c,2 _ \markup { \small { \column { 7 0 } } }
    }
>>

Changed in version 2.0: renamed label.vertical_moment_pitch_classes() to verticalitytools.label_vertical_moments_in_expr_with_numbered_chromatic_pitch_classes().

This Page