https://primanota.net/cherry-ghost/mathematics-chords.htm