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 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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
Note
Inherited from __builtin__.tuple
Raises ValueError if the value is not present.
Note
Inherited from __builtin__.tuple
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
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.
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
Note
Inherited from pitchtools._Segment
x.__contains__(y) <==> y in x
Note
Inherited from __builtin__.tuple
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.tuple
x.__getitem__(y) <==> x[y]
Note
Inherited from __builtin__.tuple
x.__gt__(y) <==> x>y
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
x.__le__(y) <==> x<=y
Note
Inherited from __builtin__.tuple
Note
Inherited from __builtin__.tuple
x.__lt__(y) <==> x<y
Note
Inherited from __builtin__.tuple
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
Note
Inherited from pitchtools.NumberedChromaticPitchClassSegment