Pular para conteúdo

FoxDotChord.Chord

Musical chord to be manipulated by FoxDot.

The chord class generates chords that can be used by Foxdot.

Examples:

>>> Chord('C#7/9')
Chord('C#7/9')
TODO
  • Allow Scale that is not chromatic.
  • Adjust to Root.default.
  • Accept chords with inverted bass, like: (E/G#, Dm7/C).

dominant: TNote property

Dominant V.

eleventh: TNote property

Eleventh XI.

is_dim: bool property

Indicates whether the chord is sharp.

Examples:

>>> Chord('D').is_dim
False
>>> Chord('D⁰').is_dim
True
>>> Chord('D0').is_dim
True
>>> Chord('Do').is_dim
True
>>> Chord('DO').is_dim
True
>>> Chord('Ddim').is_dim
True

Returns:

Name Type Description
bool bool

True if the chord is diminished otherwise False.

is_flat: bool property

Indicates whether the chord is flat.

Examples:

>>> Chord('Cb').is_flat
True
>>> Chord('C#').is_flat
False

Returns:

Name Type Description
bool bool

True if the chord is flat otherwise False.

is_minor: bool | None property

Indicates if the chord is minor.

Examples:

>>> Chord('E#').is_minor
False
>>> Chord('E#m').is_minor
True
>>> Chord('E#5').is_minor

Returns:

Name Type Description
bool bool | None

True if the chord is minor otherwise False.

None bool | None

If it is a power chord there is no way to know if it is minor, because it doesn't have the III of the chord.

is_power_chord: bool property

Indicates if the chord is minor.

Examples:

>>> Chord('E#').is_power_chord
False
>>> Chord('E#5').is_power_chord
True

Returns:

Name Type Description
bool bool

True if it's a power chord otherwise False.

is_sharp: bool property

Indicates whether the chord is sharp.

Examples:

>>> Chord('Cb').is_sharp
False
>>> Chord('C#').is_sharp
True

Returns:

Name Type Description
bool bool

True if the chord is sharp otherwise False.

is_sus: bool property

Indicates whether the chord is suspended.

Examples:

>>> Chord('Eb').is_sus
False
>>> Chord('Ebsus').is_sus
True
>>> Chord('Ebsus4').is_sus
True
>>> Chord('Eb4').is_sus
False
>>> Chord('Eb#3').is_sus
False

Returns:

Name Type Description
bool bool

True if the chord is suspended otherwise False.

maj: TNote property

Maj VII.

ninth: TNote property

Ninth IX.

notes: list[int] property

Chord notes.

Examples:

>>> Chord('C').notes
[0, 4, 7]

from FoxDot.lib.Scale import Scale Scale.default

Returns:

Type Description
list of int:

List of notes

subdominant: TNote property

Subdominant IV.

submediant: TNote property

Submediant VI.

supertonic: TNote property

Supertonic II.

third: TNote property

Third III.

thirteenth: TNote property

Thirteenth XIII.

tone: int property

Indicates whether the tone.

tonic: int property

Tonic I.

Examples:

>>> Chord('C')
Chord('C')

true_copy(new_data=None)

Copy object.