pitchtools.TwelveToneRow

Inheritance diagram of abjad.tools.pitchtools.TwelveToneRow.TwelveToneRow.TwelveToneRow

class abjad.tools.pitchtools.TwelveToneRow.TwelveToneRow.TwelveToneRow(*args, **kwargs)[source]

New in version 2.0.

Abjad model of twelve-tone row:

abjad> pitchtools.TwelveToneRow([0, 1, 11, 9, 3, 6, 7, 5, 4, 10, 2, 8])
TwelveToneRow([0, 1, 11, 9, 3, 6, 7, 5, 4, 10, 2, 8])

Twelve-tone rows validate pitch-classes at initialization.

Twelve-tone rows inherit canonical operators from numbered chromatic pitch-class segment.

Twelve-tone rows return numbered chromatic pitch-class segments on calls to getslice.

Twelve-tone rows are immutable.

Read-only Properties

TwelveToneRow.inversion_equivalent_chromatic_interval_class_segment

Read-only inversion-equivalent chromatic interval-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.inversion_equivalent_chromatic_interval_class_segment
InversionEquivalentChromaticIntervalClassSegment(0.5, 4.5, 1, 3.5, 3.5)

Return inversion-equivalent chromatic interval-class segment.

TwelveToneRow.numbered_chromatic_pitch_class_set

Read-only numbered chromatic pitch-class set from numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.numbered_chromatic_pitch_class_set
NumberedChromaticPitchClassSet([6, 7, 10, 10.5])

Return numbered chromatic pitch-class set.

Methods

TwelveToneRow.alpha()

Morris alpha transform of numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.alpha()
NumberedChromaticPitchClassSegment([11, 11.5, 7, 6, 11.5, 6])

Return numbered chromatic pitch-class segment.

TwelveToneRow.count(value) → integer -- return number of occurrences of value

Note

Inherited from __builtin__.tuple

TwelveToneRow.index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

Note

Inherited from __builtin__.tuple

TwelveToneRow.invert()

Invert numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.invert()
NumberedChromaticPitchClassSegment([2, 1.5, 6, 5, 1.5, 5])

Return numbered chromatic pitch-class segment.

TwelveToneRow.multiply(n)

Multiply numbered chromatic pitch-class segment by n:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.multiply(5)
NumberedChromaticPitchClassSegment([2, 4.5, 6, 11, 4.5, 11])

Return numbered chromatic pitch-class segment.

TwelveToneRow.retrograde()

Retrograde of numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.retrograde()
NumberedChromaticPitchClassSegment([7, 10.5, 7, 6, 10.5, 10])

Return numbered chromatic pitch-class segment.

TwelveToneRow.rotate(n)

Rotate numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.rotate(1)
NumberedChromaticPitchClassSegment([7, 10, 10.5, 6, 7, 10.5])

Return numbered chromatic pitch-class segment.

TwelveToneRow.transpose(n)

Transpose numbered chromatic pitch-class segment:

numbered_chromatic_pitch_class_segment = pitchtools.NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
numbered_chromatic_pitch_class_segment.transpose(10)
NumberedChromaticPitchClassSegment([8, 8.5, 4, 5, 8.5, 5])

Return numbered chromatic pitch-class segment.

Special Methods

TwelveToneRow.__add__(arg)

Note

Inherited from pitchtools._Segment

TwelveToneRow.__contains__()

x.__contains__(y) <==> y in x

Note

Inherited from __builtin__.tuple

TwelveToneRow.__delattr__()

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

Note

Inherited from __builtin__.object

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

x.__ge__(y) <==> x>=y

Note

Inherited from __builtin__.tuple

TwelveToneRow.__getitem__()

x.__getitem__(y) <==> x[y]

Note

Inherited from __builtin__.tuple

TwelveToneRow.__getslice__(start, stop)[source]
TwelveToneRow.__gt__()

x.__gt__(y) <==> x>y

Note

Inherited from __builtin__.tuple

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

Note

Inherited from __builtin__.tuple

TwelveToneRow.__iter__() <==> iter(x)

Note

Inherited from __builtin__.tuple

TwelveToneRow.__le__()

x.__le__(y) <==> x<=y

Note

Inherited from __builtin__.tuple

TwelveToneRow.__len__() <==> len(x)

Note

Inherited from __builtin__.tuple

TwelveToneRow.__lt__()

x.__lt__(y) <==> x<y

Note

Inherited from __builtin__.tuple

TwelveToneRow.__mul__(n)[source]
TwelveToneRow.__ne__(arg)[source]
TwelveToneRow.__repr__()
TwelveToneRow.__rmul__(n)[source]
TwelveToneRow.__setattr__()

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

Note

Inherited from __builtin__.object

TwelveToneRow.__str__()

Table Of Contents

This Page