The function "fft" is available in instruments -- see san.ins for example. In lisp, it's either "fft" or "clm-fft" -- see mus.lisp, and ffi-test.lisp. The "spectrum" function in mus.lisp may be what you want. There are lots of other examples -- ug4.ins for example.