New in version 2.0.
Abjad model of numbered chromatic pitch-class vector:
abjad> numbered_chromatic_pitch_class_vector = pitchtools.NumberedChromaticPitchClassVector([13, 13, 14.5, 14.5, 14.5, 6, 6, 6])
abjad> numbered_chromatic_pitch_class_vector
NumberedChromaticPitchClassVector(0 2 0 0 0 0 | 3 0 0 0 0 0 || 0 0 3 0 0 0 | 0 0 0 0 0 0)
abjad> print numbered_chromatic_pitch_class_vector
0 2 0 0 0 0 | 3 0 0 0 0 0
0 0 3 0 0 0 | 0 0 0 0 0 0
Numbered chromatic pitch-class vectors are immutable.
Read-only chromatic pitch-class numbers from numbered chromatic pitch-class vector:
abjad> numbered_chromatic_pitch_class_vector = pitchtools.NumberedChromaticPitchClassVector([13, 13, 14.5, 14.5, 14.5, 6, 6, 6])
abjad> numbered_chromatic_pitch_class_vector.chromatic_pitch_class_numbers
[1, 2.5, 6]
Return list.
Read-only numbered chromatic pitch-classes from numbered chromatic pitch-class vector:
abjad> numbered_chromatic_pitch_class_vector = pitchtools.NumberedChromaticPitchClassVector([13, 13, 14.5, 14.5, 14.5, 6, 6, 6])
abjad> numbered_chromatic_pitch_class_vector.numbered_chromatic_pitch_classes
[NumberedChromaticPitchClass(2.5), NumberedChromaticPitchClass(1), NumberedChromaticPitchClass(6)]
Return list.
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
If key is not found, d is returned if given, otherwise KeyError is raised
Note
Inherited from __builtin__.dict
2-tuple; but raise KeyError if D is empty.
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
If E has a .keys() method, does: for k in E: D[k] = E[k] If E lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
Note
Inherited from datastructuretools.ImmutableDictionary
x.__eq__(y) <==> x==y
Note
Inherited from __builtin__.dict
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.dict
x.__getitem__(y) <==> x[y]
Note
Inherited from __builtin__.dict
x.__gt__(y) <==> x>y
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
x.__le__(y) <==> x<=y
Note
Inherited from __builtin__.dict
Note
Inherited from __builtin__.dict
x.__lt__(y) <==> x<y
Note
Inherited from __builtin__.dict
x.__ne__(y) <==> x!=y
Note
Inherited from __builtin__.dict
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
Note
Inherited from datastructuretools.ImmutableDictionary