chord_type
None
ChordType
Represents a chord type. Derived from the Enum class.
Attributes:
chord attributes:
4 class attributes representing a Enum.
Methods:
items(cls):
A class method to return the enums as a list.
random(cls):
A class method to return a random chord type.
__str__(self):
Returns the name of the chord type.
__repr__(self):
Returns the Enum name.
ChordType.items
A class method that returns a list of the chord enumerations.
e.g. [ChordType.Major, ChordType.Minor ... ]
Args:
None.
Returns:
A list of chord types.
ChordType.random
A class method that returns a random chord type.
e.g. ChordType.Diminished
Args:
None.
Returns:
A ChordType.
ChordType.__str__
Returns a string representing the chord type name.
e.g. str(ChordType.Major) -> 'Major'
Args:
None.
Returns:
A string.
ChordType.__repr__
Returns a string representing the key types enum.
e.g. repr(ChordType.Major) -> 'ChordType.Major'
Args:
None.
Returns:
A string.