chord notes calculation