pitchtools.NamedChromaticPitchClassSet

Inheritance diagram of abjad.tools.pitchtools.NamedChromaticPitchClassSet.NamedChromaticPitchClassSet.NamedChromaticPitchClassSet

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

New in version 2.0.

Abjad model of a named chromatic pitch-class set:

abjad> named_chromatic_pitch_class_set = pitchtools.NamedChromaticPitchClassSet(['gs', 'g', 'as', 'c', 'cs'])
abjad> named_chromatic_pitch_class_set
NamedChromaticPitchClassSet(['as', 'c', 'cs', 'g', 'gs'])
abjad> print named_chromatic_pitch_class_set
{as, c, cs, g, gs}

Named chromatic pitch-class sets are immutable.

Read-only Properties

NamedChromaticPitchClassSet.inversion_equivalent_diatonic_interval_class_vector[source]
NamedChromaticPitchClassSet.named_chromatic_pitch_classes[source]

Read-only named chromatic pitch-classes:

abjad> named_chromatic_pitch_class_set = pitchtools.NamedChromaticPitchClassSet(['gs', 'g', 'as', 'c', 'cs'])
abjad> named_chromatic_pitch_class_set.named_chromatic_pitch_classes # doctest: +SKIP
(NamedChromaticPitchClass('c'), NamedChromaticPitchClass('cs'), NamedChromaticPitchClass('g'), NamedChromaticPitchClass('gs'), NamedChromaticPitchClass('as'))

Return tuple.

NamedChromaticPitchClassSet.numbered_chromatic_pitch_class_set[source]

Methods

NamedChromaticPitchClassSet.copy()

Return a shallow copy of a set.

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.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

NamedChromaticPitchClassSet.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

NamedChromaticPitchClassSet.isdisjoint()

Return True if two sets have a null intersection.

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.issubset()

Report whether another set contains this set.

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.issuperset()

Report whether this set contains another set.

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.order_by(npc_seg)[source]
NamedChromaticPitchClassSet.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

NamedChromaticPitchClassSet.transpose(melodic_diatonic_interval)[source]

Transpose all npcs in self by melodic diatonic interval.

NamedChromaticPitchClassSet.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

NamedChromaticPitchClassSet.__and__()

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

Note

Inherited from __builtin__.frozenset

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__contains__()

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__delattr__()

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

Note

Inherited from __builtin__.object

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

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__gt__()

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

Note

Inherited from __builtin__.frozenset

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__le__()

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

Note

Inherited from __builtin__.frozenset

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__lt__()

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

Note

Inherited from __builtin__.frozenset

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

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__rand__()

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

Note

Inherited from __builtin__.frozenset

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

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__rsub__()

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__rxor__()

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__setattr__()

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

Note

Inherited from __builtin__.object

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

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

Note

Inherited from __builtin__.frozenset

NamedChromaticPitchClassSet.__xor__()

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

Note

Inherited from __builtin__.frozenset

Table Of Contents

This Page