the archive for cmdist should be on ccrma-ftp in the pub/Lisp directory. As far as needing the cm image goes, i belive the only cm function any of the versions used was DEGREE, so if you are willing to restrict your input to integer "key numbers" instead of note names (like c4, etc) then you can remove this function call and the code will work in any common lisp image.