tonal_abs

tonal_abs(x: tuple[int, ...])

Returns the absolute distance in half steps from the origin (Middle C).

Examples

>>> tonal_abs((6,11,-1))
1
>>> tonal_abs((0,1,0))
1