Calculates chord progression.