https://primanota.net/beecher/function-function-chords.htm