I do this patch to help the composers with their matrix for 12 note composition. The primary objective of the patch is to develop the sound sequences and print in paper to work with them. But, maybe you can use to createl...mmm...or...mmm...who knows?
There may be a better way to do the same function, but my knowledge in math and programming isn´t enough today. I´m still working.
Regards and hope this will be useful!!!