Ad
  • Custom User Avatar

    Nice kata, thanks! :) I've done a lot of such computations through the years and it is interesting to compare the expressivity of various languages (eg. C#, Java, Scala, Python, etc.). IMHO code in Python can the most expressive for these tasks as observed so far.

    Another nice kata would be to sort the pitch class sets on Z12 by taking the index of the binary number. It allows to select a canonical representant of each pitch class set. And guess what's the rank of the diatonic set among all such canonic sets of size 7 and what are its neighbors ;)