pitcharraytools.PitchArrayRow

Inheritance diagram of abjad.tools.pitcharraytools.PitchArrayRow.PitchArrayRow.PitchArrayRow

class abjad.tools.pitcharraytools.PitchArrayRow.PitchArrayRow.PitchArrayRow(cells)[source]

New in version 2.0.

One row in pitch array.

abjad> from abjad.tools import pitcharraytools
abjad> array = pitcharraytools.PitchArray([[1, 2, 1], [2, 1, 1]])
abjad> array[0].cells[0].pitches.append(0)
abjad> array[0].cells[1].pitches.append(2)
abjad> array[1].cells[2].pitches.append(4)
abjad> print array
[c'] [d'    ] [  ]
[         ] [ ] [e']
abjad> array[0]
PitchArrayRow(c', d' x2, x1)
abjad> array[0].cell_widths
(1, 2, 1)
abjad> array[0].dimensions
(1, 4)
abjad> array[0].pitches
(NamedChromaticPitch("c'"), NamedChromaticPitch("d'"))

Return pitch array row.

Read-only Properties

PitchArrayRow.cell_tokens[source]
PitchArrayRow.cell_widths[source]
PitchArrayRow.cells[source]
PitchArrayRow.depth[source]
PitchArrayRow.dimensions[source]
PitchArrayRow.is_defective[source]
PitchArrayRow.is_in_range[source]
PitchArrayRow.parent_array[source]
PitchArrayRow.pitches[source]
PitchArrayRow.row_index[source]
PitchArrayRow.weight[source]
PitchArrayRow.width[source]

Read/write Properties

PitchArrayRow.pitch_range[source]

Methods

PitchArrayRow.append(cell_token)[source]
PitchArrayRow.apply_pitches(pitch_tokens)[source]
PitchArrayRow.copy_subrow(start=None, stop=None)[source]
PitchArrayRow.empty_pitches()[source]
PitchArrayRow.extend(cell_tokens)[source]
PitchArrayRow.has_spanning_cell_over_index(i)[source]
PitchArrayRow.index(cell)[source]
PitchArrayRow.merge(cells)[source]
PitchArrayRow.pad_to_width(width)[source]
PitchArrayRow.pop(cell_index)[source]
PitchArrayRow.remove(cell)[source]
PitchArrayRow.withdraw()[source]

Special Methods

PitchArrayRow.__add__(arg)[source]
PitchArrayRow.__delattr__()

x.__delattr__(‘name’) <==> del x.name

Note

Inherited from __builtin__.object

PitchArrayRow.__eq__(arg)[source]
PitchArrayRow.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayRow.__getitem__(arg)[source]
PitchArrayRow.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

PitchArrayRow.__hash__() <==> hash(x)

Note

Inherited from __builtin__.object

PitchArrayRow.__iadd__(arg)[source]
PitchArrayRow.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayRow.__len__()[source]
PitchArrayRow.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayRow.__ne__(arg)[source]
PitchArrayRow.__repr__()[source]
PitchArrayRow.__setattr__()

x.__setattr__(‘name’, value) <==> x.name = value

Note

Inherited from __builtin__.object

PitchArrayRow.__str__()[source]

Table Of Contents

This Page