New in version 2.0.
Abjad model of a numbered chromatic pitch-class segment:
abjad> pitchtools.NumberedChromaticPitchClassSegment([-2, -1.5, 6, 7, -1.5, 7])
NumberedChromaticPitchClassSegment([10, 10.5, 6, 7, 10.5, 7])
Numbered chromatic pitch-class segments 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.
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.
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 __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.
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.
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.
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.
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._Segment
x.__contains__(y) <==> y in x
Note
Inherited from __builtin__.tuple
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
x.__eq__(y) <==> x==y
Note
Inherited from __builtin__.tuple
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.tuple
x.__getitem__(y) <==> x[y]
Note
Inherited from __builtin__.tuple
Note
Inherited from pitchtools._Segment
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._Segment
x.__ne__(y) <==> x!=y
Note
Inherited from __builtin__.tuple
Note
Inherited from pitchtools._Segment
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object