This is a quick update on my previous posts on consonance calculations (here and here).
But first, a really nice comparison of some temperaments on Mozart KV397:
Back to the consonance calculations: the Python code was really dirty on one hand, and I thought it would be useful to share on the other hand, so I’ve decided to clean it and put it on GitHub. You can find it on the following repository: https://github.com/AlexPof/py_consonances.
The code calculates the consonance values of major/minor chords, relative to pure chords, for different tunings, as shown below:
It also calculates the consonance values of major/minor chords, relative to equal temperament, for different tunings, as shown below.