But then it wouldn't have been a hack! We wouldn't have had to understand anything to get the job done!
... Though, credit where credit is due, the C code we used to generate the audio signal actually is pretty much a direct port of the corresponding code in ADTPro. One of the reasons it's released separately from our lisp code is because ADTPro is LGPL and we prefer the MIT license. :) One of these days I'll make the port more independent and less derivative, so they can all be in the same project.