A metric function is a function that takes a scale as input and
returns a calculated value. As mentioned in Basic Concepts, it returns
dict with the metric name as the key, and the metric value
as the value.
The currently defined metrics all estimate the consonance or dissonance of a scale.
There is also a function that calculates all defined metrics for a scale.