CalPyTools is a set of tools to work with pitch class sets, pitch matrices and other ways to control musical discourse. All of them written in python.

PCS()

The class to analyse pitch sets and look for their Allen Forte's classification. The program has all the functions needed to get ordered forms, prime forms and interval vectors.

pcs_cmd.py

An utility to run PCS() directly on a terminal.

Chain()

The class to build constant pitch class set notes sequences. The program takes a base pcs a look for common subsets in all states space. When it is possible, it creates a sequence of your desired number of links.

chain_cmd.py

An utility to create Chain()s directly on a terminal.

+ info

All the code is here. If you need help feel free to contact me. If you find errors in the code, please tell me.