New in version 2.0.
Abjad model of a numbered chromatic pitch-class set:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set
NumberedChromaticPitchClassSet([6, 7, 10, 10.5])
abjad> print numbered_chromatic_pitch_class_set
{6, 7, 10, 10.5}
Numbered chromatic pitch-class sets are immutable.
Read-only inversion-equivalent chromatic interval-class set:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.inversion_equivalent_chromatic_interval_class_set
InversionEquivalentChromaticIntervalClassSet(0.5, 1, 3, 3.5, 4, 4.5)
Return inversion-equivalent chromatic interval-class set.
Read-only inversion-equivalent chromatic interval-class vector:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.inversion_equivalent_chromatic_interval_class_vector
InversionEquivalentChromaticIntervalClassVector(0 | 1 0 1 1 0 0 1 0 0 1 1 0)
Return inversion-equivalent chromatic interval-class vector.
Read-only numbered chromatic pitch-classes:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.numbered_chromatic_pitch_classes
(NumberedChromaticPitchClass(6), NumberedChromaticPitchClass(7), NumberedChromaticPitchClass(10), NumberedChromaticPitchClass(10.5))
Return tuple.
Return a shallow copy of a set.
Note
Inherited from __builtin__.frozenset
Return the difference of two or more sets as a new set.
(i.e. all elements that are in this set but not the others.)
Note
Inherited from __builtin__.frozenset
Return the intersection of two or more sets as a new set.
(i.e. elements that are common to all of the sets.)
Note
Inherited from __builtin__.frozenset
Invert numbered chromatic pitch-class set:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.invert()
NumberedChromaticPitchClassSet([1.5, 2, 5, 6])
Return numbered chromatic pitch-class set.
True when self is transposed subset of pcset. False otherwise:
abjad> pcset_1 = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> pcset_2 = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7, 7.5, 8])
abjad> pcset_1.is_transposed_subset(pcset_2)
True
Return boolean.
True when self is transposed superset of pcset. False otherwise:
abjad> pcset_1 = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> pcset_2 = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7, 7.5, 8])
abjad> pcset_2.is_transposed_superset(pcset_1)
True
Return boolean.
Return True if two sets have a null intersection.
Note
Inherited from __builtin__.frozenset
Report whether another set contains this set.
Note
Inherited from __builtin__.frozenset
Report whether this set contains another set.
Note
Inherited from __builtin__.frozenset
Multiply numbered chromatic pitch-class set by n:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.multiply(5)
NumberedChromaticPitchClassSet([2, 4.5, 6, 11])
Return numbered chromatic pitch-class set.
Return the symmetric difference of two sets as a new set.
(i.e. all elements that are in exactly one of the sets.)
Note
Inherited from __builtin__.frozenset
Transpose numbered chromatic pitch-class set by n:
abjad> numbered_chromatic_pitch_class_set = pitchtools.NumberedChromaticPitchClassSet([-2, -1.5, 6, 7, -1.5, 7])
abjad> numbered_chromatic_pitch_class_set.multiply(5)
NumberedChromaticPitchClassSet([2, 4.5, 6, 11])
Return numbered chromatic pitch-class set.
Return the union of sets as a new set.
(i.e. all elements that are in either set.)
Note
Inherited from __builtin__.frozenset
x.__and__(y) <==> x&y
Note
Inherited from __builtin__.frozenset
Note
Inherited from __builtin__.frozenset
x.__contains__(y) <==> y in x.
Note
Inherited from __builtin__.frozenset
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.frozenset
x.__gt__(y) <==> x>y
Note
Inherited from __builtin__.frozenset
Note
Inherited from __builtin__.frozenset
x.__le__(y) <==> x<=y
Note
Inherited from __builtin__.frozenset
Note
Inherited from __builtin__.frozenset
x.__lt__(y) <==> x<y
Note
Inherited from __builtin__.frozenset
x.__or__(y) <==> x|y
Note
Inherited from __builtin__.frozenset
x.__rand__(y) <==> y&x
Note
Inherited from __builtin__.frozenset
x.__ror__(y) <==> y|x
Note
Inherited from __builtin__.frozenset
x.__rsub__(y) <==> y-x
Note
Inherited from __builtin__.frozenset
x.__rxor__(y) <==> y^x
Note
Inherited from __builtin__.frozenset
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
x.__sub__(y) <==> x-y
Note
Inherited from __builtin__.frozenset
x.__xor__(y) <==> x^y
Note
Inherited from __builtin__.frozenset