measuretools.pitch_array_row_to_measure

abjad.tools.measuretools.pitch_array_row_to_measure.pitch_array_row_to_measure(pitch_array_row, cell_duration_denominator=8)[source]

New in version 2.0.

Change pitch_array_row to measure with meter pitch_array_row.width over cell_duration_denominator:

abjad> from abjad.tools import pitcharraytools
abjad> array = pitcharraytools.PitchArray([
...     [1, (2, 1), ([-2, -1.5], 2)],
...     [(7, 2), (6, 1), 1]])
abjad> print array
[  ] [d'] [bf bqf    ]
[g'     ] [fs'   ] [ ]
abjad> measure = measuretools.pitch_array_row_to_measure(array.rows[0])
abjad> f(measure)
{
    \time 4/8
    r8
    d'8
    <bf bqf>4
}

Return measure.

This Page