Added scales dictionary to handle diatonic chord output.