https://primanota.net/angel-dust/rectify-chords.htm