exposed function to convert pitch arrays to pitch set indices