musicaiz.harmony.IntervalSemitones

class musicaiz.harmony.IntervalSemitones(value)[source]

An enumeration.

__init__(*args, **kwargs)

Methods

all_interval_names()

check_interval_exists(name)

get_interval_from_semitones(semitones)

get_qualities_from_semitones(semitones)

Returns a list of all possible interval qualities for the input semitones.

get_classes_from_semitones(semitones)

Returns a list of all possible interval classes for the input semitones.

get_class_from_quality_semitones(quality, ...)

Returns the only interval class that blongs to the input quality and semitones. Raises ------ ValueError if the combination of semitones and quality does not match any interval.

get_quality_from_class_semitones(...)

Returns the only interval class that blongs to the input quality and semitones. Raises ------ ValueError if the combination of semitones and quality does not match any interval.

get_interval_from_name(interval)

Attributes

UNISON_PERFECT

UNISON_AUGMENTED

UNISON_DOUBLY_AUGMENTED

SECOND_DIMINISHED

SECOND_MINOR

SECOND_MAJOR

SECOND_AUGMENTED

SECOND_DOUBLY_AUGMENTED

THIRD_DOUBLY_DIMINISHED

THIRD_DIMINISHED

THIRD_MINOR

THIRD_MAJOR

THIRD_AUGMENTED

THIRD_DOUBLY_AUGMENTED

FOURTH_DOUBLY_DIMINISHED

FOURTH_DIMINISHED

FOURTH_PERFECT

FOURTH_AUGMENTED

FOURTH_DOUBLY_AUGMENTED

FIFTH_PERFECT

FIFTH_DOUBLY_DIMINISHED

FIFTH_DIMINISHED

FIFTH_AUGMENTED

FIFTH_DOUBLY_AUGMENTED

SIXTH_DIMINISHED

SIXTH_DOUBLY_DIMINISHED

SIXTH_MINOR

SIXTH_MAJOR

SIXTH_AUGMENTED

SIXTH_DOUBLY_AUGMENTED

SEVENTH_DOUBLY_DIMINISHED

SEVENTH_DIMINISHED

SEVENTH_MINOR

SEVENTH_MAJOR

SEVENTH_AUGMENTED

SEVENTH_DOUBLY_AUGMENTED

OCTAVE_DIMINISHED

OCTAVE_PERFECT

semitones

names

large

medium

contracted

symbol