@staticmethod
def getKeyIndex(text):
    """Get the index of the key in the circle of fifths.
        
        'Cb' returns 0, 'C' returns 7, 'B#' returns 14.
        """
    circleOfFifths = ['Cb', 'Gb', 'Db', 'Ab', 'Eb', 'Bb', 'F', 'C', 'G',
        'D', 'A', 'E', 'B', 'F#', 'C#']
    return circleOfFifths.index(text.capitalize())
