Building a Signal Analyzer with Modern Web Tech
cprimozic.net
cprimozic.net
The thesis:
> I recently spent some time building a browser-based signal analyzer (spectrogram + oscilloscope) as part of one of my projects. I ended up using some very modern browser APIs and technologies that I'd not worked with before, and I discovered a lot of really interesting patterns and techniques that I'd never seen before in a web app.
> Building this application has made it clear to me that the modern web is extremely well-suited to building complex multi-threaded and graphics-intensive applications.
So I'm not really sure the author's thesis has been validated, as interesting and useful as the concept appears to be.
To that end I don't think it's a fair criticism of web app developers or Firefox that apps like this don't work in your browser.
The security issues that were mentioned (someone bricking synths on purpose via SysEx messages) has afaik never actually happened.
Maybe there's a setting you've disabled previously and have since forgotten about?
Some browsers have anti-autoplay-ad protections built in that prevent audio from playing until you interact with the page. You might have to click the page or press a key on the keyboard to get it started.
Show HN: I've built a spectrogram analyzer web app
https://news.ycombinator.com/item?id=35781959 (19 days ago)
ffmpeg -f alsa -channels 1 -sample_rate 250000 -i hw:CARD=r4,DEV=0 -t 5 mic.wav
Made by the same guy who created the popular llama.cpp LLM library. The model uses log-mel spectrograms as input.
Using modern algorithms, FFT is actually really fast to compute. Definitely dwarfed by the evaluation of the model itself, even when using many threads and Wasm SIMD.
I've done some rudimentary signal analysis on other types of sensors - accelerometer (for detecting vibrations of specific frequency) and millivolt probes on a hardware instrument - I've used stuff like Matlab or Python to do the signal analysis.
Very dope. Glad I saw this. Great work.
https://www.howtogeek.com/778554/remembering-vrml-the-metave...
No info about HW ? Does he uses the soundcard ? Then it is nothing new.