added an indexing function to selectect the relative root of the ionian scale