pitcharraytools.PitchArrayCell

Inheritance diagram of abjad.tools.pitcharraytools.PitchArrayCell.PitchArrayCell.PitchArrayCell

class abjad.tools.pitcharraytools.PitchArrayCell.PitchArrayCell.PitchArrayCell(cell_token=None)[source]

One cell in a pitch array.

abjad> from abjad.tools import pitcharraytools
abjad> array = pitcharraytools.PitchArray([[1, 2, 1], [2, 1, 1]])
abjad> print array
[ ] [     ] [ ]
[     ] [ ] [ ]
abjad> cell = array[0][1]
abjad> cell
PitchArrayCell(x2)
abjad> cell.column_indices
(1, 2)
abjad> cell.indices
(0, (1, 2))
abjad> cell.is_first_in_row
False
abjad> cell.is_last_in_row
False
abjad> cell.next
PitchArrayCell(x1)
abjad> cell.parent_array
PitchArray(PitchArrayRow(x1, x2, x1), PitchArrayRow(x2, x1, x1))
abjad> cell.parent_column
PitchArrayColumn(x2, x2)
abjad> cell.parent_row
PitchArrayRow(x1, x2, x1)
abjad> cell.pitches
[]
abjad> cell.prev
PitchArrayCell(x1)
abjad> cell.row_index
0
abjad> cell.token
2
abjad> cell.width
2

Return pitch array cell.

Read-only Properties

PitchArrayCell.column_indices[source]

Read-only tuple of one or more nonnegative integer indices.

PitchArrayCell.indices[source]
PitchArrayCell.is_first_in_row[source]
PitchArrayCell.is_last_in_row[source]
PitchArrayCell.next[source]
PitchArrayCell.parent_array[source]
PitchArrayCell.parent_column[source]
PitchArrayCell.parent_row[source]
PitchArrayCell.prev[source]
PitchArrayCell.row_index[source]
PitchArrayCell.token[source]
PitchArrayCell.weight[source]
PitchArrayCell.width[source]

Read/write Properties

PitchArrayCell.pitches[source]

Methods

PitchArrayCell.matches_cell(arg)[source]

Special Methods

PitchArrayCell.__delattr__()

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

Note

Inherited from __builtin__.object

PitchArrayCell.__eq__(arg)

True when id(self) equals id(arg).

Return boolean.

Note

Inherited from abctools.AbjadObject

PitchArrayCell.__ge__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayCell.__gt__(arg)

Abjad objects by default do not implement this method.

Raise exception

Note

Inherited from abctools.AbjadObject

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

Note

Inherited from __builtin__.object

PitchArrayCell.__le__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayCell.__lt__(arg)

Abjad objects by default do not implement this method.

Raise exception.

Note

Inherited from abctools.AbjadObject

PitchArrayCell.__ne__(arg)

True when id(self) does not equal id(arg).

Return boolean.

Note

Inherited from abctools.AbjadObject

PitchArrayCell.__repr__()[source]
PitchArrayCell.__setattr__()

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

Note

Inherited from __builtin__.object

PitchArrayCell.__str__()[source]

Table Of Contents

This Page