-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
My AUKit library for CC:T includes a bunch of functions for loading, manipulating, and playing audio, with support for PCM, DFPWM, WAV, AIFF, AU, and FLAC in any sample rate or data format. You might be able to find what you need here. If you really want those frequencies, you'll need to find an FFT library for Lua; but I don't recommend doing this in plain Lua because it'll be extremely slow. It takes about a minute to run an FFT on a 4 minute song using LuaJIT, and for CC's Lua, it would probably take over an hour.
As for why you get static: I'm guessing you're trying to play the wrong audio format. CC's built-in speaker program only supports three very specific formats: raw DFPWM data at 48000 Hz mono (output from sites like music.madefor.cc and the previously-linked Remote Music), 8-bit PCM WAV at 48000 Hz mono (which can be exported with Audacity), and DFPWM encapsulated in a WAV at 48000 Hz mono (not very common). You need to make sure your data is in one of these three formats if you want to use the built-in speaker program. If you use the austream program from AUKit as I linked above, you can then play any WAV format file, plus AIFF, AU, and (not recommended because it's slow) FLAC.