https://primanota.net/area-11/contract-chords.htm