News for hackers. Stuff that matters.
Re:Show HN: G-Script – Visual Scripting for the Web by TheActualWalko on Sunday February 12, 2023 @12:16AM (#34760068)
Super cool! I was similarly inspired by UE and built a node-based editor into my in-browser DAW project (https://wavtool.com/).

It really is an excellent interface paradigm. I expected it to be daunting to first-timers but user feedback has been alarmingly positive. Many beginners find this more intuitive than the standard sequential list of effects, because the node-based interface reminds them of guitar pedalboards and home theatre systems.

Re:Show HN: G-Script – Visual Scripting for the Web by p32y on Sunday February 12, 2023 @05:26AM (#34761696)
Cool, what techniques did you use to create this amazing work?
Re:Show HN: G-Script – Visual Scripting for the Web by TheActualWalko on Sunday February 12, 2023 @01:38PM (#34765459)
Haha thanks! The big things:

- React as the core of the UI, with direct DOM manipulation and canvas stuff whenever the React lifecycle is too slow. - WebAssembly for any audio logic that happens at least once per sample - Lookup tables for almost all math that happens at least once per sample and is more complicated than multiplication - Use Web Audio as an interface layer, but do everything else manually. (Web Audio tries to help a lot of ways but often winds up making things worse)

If you're curious about anything specific I'd be happy to talk!