pitchtools.NumberedChromaticPitchClassSet

Inheritance diagram of abjad.tools.pitchtools.NumberedChromaticPitchClassSet.NumberedChromaticPitchClassSet.NumberedChromaticPitchClassSet

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

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 Properties

NumberedChromaticPitchClassSet.inversion_equivalent_chromatic_interval_class_set[source]

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.

NumberedChromaticPitchClassSet.inversion_equivalent_chromatic_interval_class_vector[source]

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.

NumberedChromaticPitchClassSet.numbered_chromatic_pitch_classes[source]

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.

NumberedChromaticPitchClassSet.prime_form[source]

To be implemented.

Methods

NumberedChromaticPitchClassSet.copy()

Return a shallow copy of a set.

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.difference()

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

NumberedChromaticPitchClassSet.intersection()

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

NumberedChromaticPitchClassSet.invert()[source]

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.

NumberedChromaticPitchClassSet.is_transposed_subset(pcset)[source]

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.

NumberedChromaticPitchClassSet.is_transposed_superset(pcset)[source]

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.

NumberedChromaticPitchClassSet.isdisjoint()

Return True if two sets have a null intersection.

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.issubset()

Report whether another set contains this set.

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.issuperset()

Report whether this set contains another set.

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.multiply(n)[source]

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.

NumberedChromaticPitchClassSet.symmetric_difference()

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

NumberedChromaticPitchClassSet.transpose(n)[source]

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.

NumberedChromaticPitchClassSet.union()

Return the union of sets as a new set.

(i.e. all elements that are in either set.)

Note

Inherited from __builtin__.frozenset

Special Methods

NumberedChromaticPitchClassSet.__and__()

x.__and__(y) <==> x&y

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__cmp__(y) <==> cmp(x, y)

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__contains__()

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

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__delattr__()

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

Note

Inherited from __builtin__.object

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

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

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__gt__()

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

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__hash__()[source]
NumberedChromaticPitchClassSet.__iter__() <==> iter(x)

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__le__()

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

Note

Inherited from __builtin__.frozenset

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

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__lt__()

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

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__ne__(arg)[source]
NumberedChromaticPitchClassSet.__or__()

x.__or__(y) <==> x|y

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__rand__()

x.__rand__(y) <==> y&x

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__repr__()[source]
NumberedChromaticPitchClassSet.__ror__()

x.__ror__(y) <==> y|x

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__rsub__()

x.__rsub__(y) <==> y-x

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__rxor__()

x.__rxor__(y) <==> y^x

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__setattr__()

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

Note

Inherited from __builtin__.object

NumberedChromaticPitchClassSet.__str__()[source]
NumberedChromaticPitchClassSet.__sub__()

x.__sub__(y) <==> x-y

Note

Inherited from __builtin__.frozenset

NumberedChromaticPitchClassSet.__xor__()

x.__xor__(y) <==> x^y

Note

Inherited from __builtin__.frozenset

Table Of Contents

This Page