I guess I should also shout-out Lil for having built-in operators that implement the core of the Discrete Fourier Transform:
guess: unit ((keys signal.data)/count signal.data)*-2*pi*f
scores:(sum signal.data*guess)/count signal.data
spectrum.value:
insert volume phase
with mag scores heading scores
into spectrum.value