pitcharraytools.make_empty_pitch_array_from_list_of_pitch_lists

abjad.tools.pitcharraytools.make_empty_pitch_array_from_list_of_pitch_lists.make_empty_pitch_array_from_list_of_pitch_lists(leaf_iterables)[source]

New in version 2.0.

Make empty pitch array from leaf_iterables:

abjad> from abjad.tools import pitcharraytools
abjad> score = Score([])
abjad> score.append(Staff("c'8 d'8 e'8 f'8"))
abjad> score.append(Staff("c'4 d'4"))
abjad> score.append(Staff(tuplettools.FixedDurationTuplet(Duration(2, 8), "c'8 d'8 e'8") * 2))
abjad> f(score)
\new Score <<
    \new Staff {
        c'8
        d'8
        e'8
        f'8
    }
    \new Staff {
        c'4
        d'4
    }
    \new Staff {
        \times 2/3 {
            c'8
            d'8
            e'8
        }
        \times 2/3 {
            c'8
            d'8
            e'8
        }
    }
>>
abjad> array = pitcharraytools.make_empty_pitch_array_from_list_of_pitch_lists(score)
abjad> print array
[     ] [     ] [     ] [     ]
[                 ] [                 ]
[ ] [     ] [ ] [ ] [     ] [ ]

Return pitch array.

This Page