scale_diatonic
None
DiatonicScale
An extended scale class that represents a diatonic scale (7 notes) with properties for the scale degrees.
While the scale degrees for the first six notes are the same for both major and minor scales, the seventh one is special.
Attributes:
tonic:
The 1st scale degree (root)
supertonic:
The 2nd scale degree
mediant:
The 3rd scale degree
subdominant:
The 4th scale degree
dominant:
The 5th scale degree
submediant:
The 6th scale degree
leading_tone:
The 7th scale degree (NOT for natural Minor scales)
subtonic:
The 7th scale degree (ONLY for natural Minor scales, whole step below the tonic)
Methods:
__init__(self, root, scale_type):
Initialises the root and scale type
DiatonicScale.__init__
Builds the scale from a root note and a scale type.
Args:
root:
The note to build the scale from.
scale_type:
The type of scale that contains 7 notes (i.e. not pentantonic or blues)