implemented scale-chord analysis