import math


def calculateCents(referenceScale, newScale):
    """Takes two arrays of frequencies and calculates the cents difference. Returns 8 values in a list."""
    centsList = []
    for i in range(len(referenceScale)):
        ratio = newScale[i] / referenceScale[i]
        cents = round(((math.log(ratio) / math.log(2)) * 1200), 2)
        centsList.append(cents)
    return centsList