Associate Professor in computer science - University of Caen - CNRS UMR6072 GREYC - France
Below are some details about the online version of Hurmony - Tonality Visualization.
This work aims to provide a dynamic visualization of tonality throughout a musical sequence.
MusicXML formatVerovio application converts the MusicXML format to MEI, another XML version (which can also be obtained through XSLT transformation)Humdrum Extras library converts the MusicXML format to hum and performs tonal analysisThe harmony data is provided by the mkeyscape utility, which defines an analysis step, here set to the eighth note. For example, on the 26 four-beat measures of the reference Bach BWV555, mkeyscape computes, for 26 * 4 = 104 points, the tonality:
mkeyscape submits the notes expressed at each analysis point to the Krumhansl-Schmuckler algorithm, which establishes a Pearson correlation between the measured pitch class histogram and the predefined profiles for major and minor keys.mkeyscape provides analysis results for all numbers of points less than the requested value:
mkeyscape produces enough analyses to represent them in a triangle, where each line represents a different level of analysis granularity.

The colors are inspired by my daughter’s synesthesia. Major and relative minor are merged.
For major keys, the root and the fifth are located on the outer circle, and linked to the minor third on the inner circle. For minor keys, it is the opposite.
This visualization technique arranges the keys around a circle in such a way that their geometric proximity reflects harmonic proximity.