pitchtools.MelodicChromaticIntervalSegment

Inheritance diagram of abjad.tools.pitchtools.MelodicChromaticIntervalSegment.MelodicChromaticIntervalSegment.MelodicChromaticIntervalSegment

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

New in version 2.0.

Abjad model of melodic chromatic interval segment:

abjad> pitchtools.MelodicChromaticIntervalSegment([11, 13, 13.5, -2, 2.5])
MelodicChromaticIntervalSegment(+11, +13, +13.5, -2, +2.5)

Melodic chromatic interval segments are immutable.

Read-only Properties

MelodicChromaticIntervalSegment.harmonic_chromatic_interval_segment[source]
MelodicChromaticIntervalSegment.interval_classes

Note

Inherited from pitchtools._IntervalSegment

MelodicChromaticIntervalSegment.intervals

Note

Inherited from pitchtools._IntervalSegment

MelodicChromaticIntervalSegment.melodic_chromatic_interval_class_segment[source]
MelodicChromaticIntervalSegment.melodic_chromatic_interval_class_vector[source]
MelodicChromaticIntervalSegment.melodic_chromatic_interval_numbers[source]
MelodicChromaticIntervalSegment.slope[source]

The slope of a melodic interval segment is the sum of its intervals divided by its length:

abjad> pitchtools.MelodicChromaticIntervalSegment([1, 2]).slope
Fraction(3, 2)

Return fraction.

MelodicChromaticIntervalSegment.spread[source]

The maximum harmonic interval spanned by any combination of the intervals within a harmonic chromatic interval segment:

abjad> pitchtools.MelodicChromaticIntervalSegment([1, 2, -3, 1, -2, 1]).spread
HarmonicChromaticInterval(4)
abjad> pitchtools.MelodicChromaticIntervalSegment([1, 1, 1, 2, -3, -2]).spread
HarmonicChromaticInterval(5)

Return harmonic chromatic interval.

Methods

MelodicChromaticIntervalSegment.count(value) → integer -- return number of occurrences of value

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.rotate(n)

Note

Inherited from pitchtools._IntervalSegment

Special Methods

MelodicChromaticIntervalSegment.__add__(arg)

Note

Inherited from pitchtools._Segment

MelodicChromaticIntervalSegment.__contains__()

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__delattr__()

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

Note

Inherited from __builtin__.object

MelodicChromaticIntervalSegment.__eq__()

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__ge__()

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__getitem__()

x.__getitem__(y) <==> x[y]

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__getslice__(start, stop)

Note

Inherited from pitchtools._Segment

MelodicChromaticIntervalSegment.__gt__()

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__hash__() <==> hash(x)

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__iter__() <==> iter(x)

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__le__()

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

Note

Inherited from __builtin__.tuple

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__lt__()

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

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__mul__(n)

Note

Inherited from pitchtools._Segment

MelodicChromaticIntervalSegment.__ne__()

x.__ne__(y) <==> x!=y

Note

Inherited from __builtin__.tuple

MelodicChromaticIntervalSegment.__repr__()

Note

Inherited from pitchtools._IntervalSegment

MelodicChromaticIntervalSegment.__rmul__(n)

Note

Inherited from pitchtools._Segment

MelodicChromaticIntervalSegment.__setattr__()

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

Note

Inherited from __builtin__.object

MelodicChromaticIntervalSegment.__str__()

Note

Inherited from pitchtools._IntervalSegment

Table Of Contents

This Page