musicaiz.harmony.Tonality

class musicaiz.harmony.Tonality(value)[source]
Args:
Enum ([type]): (

Root note, Num Accidentals, Accidental object, {Additional Accidentals, Triads, Sevenths}

)

__init__(*args, **kwargs)

Methods

scales(scale)

scale_notes(scale)

This method returns the notes of the scale corresponding to a submode.

get_scale_from_accidentals_num()

get_scale_from_accidentals_symbol()

get_scale_from_accidentals_num_symbol()

get_chord_from_degree(tonality, degree[, ...])

get_all_chords_from_scale(tonality[, scale, ...])

get_chord_notes_from_degree(tonality, degree)

Return a list of the notes that corresponds to the input degree chord.

get_scales_degrees_from_chord(chord)

Returns all the scales with their corresponding degree that belong to the input chord.

get_modes_degrees_from_chord(chord)

Same as get_scales_degrees_from_chord but this method only returns the tonality and degree, not the specific scale.

Attributes

C_MAJOR

A_MINOR

G_MAJOR

E_MINOR

F_MAJOR

D_MINOR

D_MAJOR

B_MINOR

B_FLAT_MAJOR

G_MINOR

A_MAJOR

F_SHARP_MINOR

E_FLAT_MAJOR

C_MINOR

E_MAJOR

C_SHARP_MINOR

A_FLAT_MAJOR

F_MINOR

B_MAJOR

G_SHARP_MINOR

D_FLAT_MAJOR

B_FLAT_MINOR

F_SHARP_MAJOR

D_SHARP_MINOR

G_FLAT_MAJOR

E_FLAT_MINOR

C_SHARP_MAJOR

A_SHARP_MINOR

C_FLAT_MAJOR

A_FLAT_MINOR

relative

root_note

num_accidentals

symbol_accidentals

major

dorian

phrygian

lydian

mixolydian

locrian

natural

harmonic

melodic

all_scales

altered_notes

Returns the altered notes in the scale.

notes

Uses altered_notes property to generate the notes in the scale.