System Stuff for Music 401
John Rahn Oct 1992
You are working on a NeXT computer. It's operating system in called Unix, which you can access from the Terminal application window by typing in commands. Some handy Unix commands are:
ls lists files in current directory
ls -l lists them with complete information
mv fname newname renames file fname to newname
cp fname newname copies file fname to newname
rm fname removes (erases permanently!) file fname
cd path changes your current directory to the one you specify
To run Common Lisp, type:
cl
This creates a window that runs a Lisp Listener. Anything you type in or load into this window is executed by Lisp. The way to work in Lisp is to use Edit or some other editor such as emacs to make a file containing your source code. You can use the mouse to copy/paste your code into the Lisp window, or you can load your Lisp code by typing in the lisp window
cl>(load "mycode.cl" :print t)
where mycode.cl is some file name of yours. (The keyword parameter ":print t" is optional, but gives you more information.)
If your file is large or contains recursion to some depth, you should compile and load it. Compiled Lisp is translated into machine code and runs about 40 times faster!
cl> (compile-file "mycode.cl") writes a file of machine code called mycode.fasl, and
cl>(load "mycode.fasl") loads that into lisp. You can automate this by writing a function.
Do not print many pages, and do not print a Terminal window such as the Lisp window. Instead, print a file from Unix by
enscript fname
If you are setting things up on some NeXT not in SMCC or some other Unix workstation that has a Common Lisp, you need these things:
1. Common Lisp
2. kernel.Oct92.cl (compile this to get kernel.Oct92.fasl and load that)
3. class.orc (also mc.orc) are csound orchestras that must reside in your home directory
4. csound (the executable must be somewhere in your path)
The files kernel.Oct92.cl, class.orc, mc.orc, and csound are all available in PUBLIC under Music401-2-3 in SMCC. All except the .orc files are installed in ACC.