Improved the readability of the chord generation