Hello,
Attached is a list abstraction that outputs the set-class (in the music theory sense) of the incoming list taken as a set of pitches. Another name for the abstraction might be [list-primeform]. The modulus is variable and can be set by a creation argument -- it defaults to 12.
It requires some form of [list-sort], which I've included from the list-abs directory.
See, for instance:
http://lulu.esm.rochester.edu/rdm/pdflib/set-class.table.pdf
I assume there's already something like this in Pd-land, but I thought it would be fun to build one.
Matt