Hacker News new | ask | show | jobs
by NHQ 1833 days ago
Please please put the ScriptProcessorNode back in the spec.
2 comments

Yes! I am using the WaveSurfer [0] library to visualize audio waveforms for a project, which uses this. It works, but Chrome always says 'ScriptProcessorNode is deprecated, use AudioWorkletNode instead'.

[0] https://github.com/katspaugh/wavesurfer.js

Anything wrong with audioworklets that are slated to replace it?
Worklets are out of the main process. That is good for a lot of what the script processors are designed for (compute intensive stuff), but having a script node in the main process is the only way I know to get perfect timing. Plus, the ScriptProcessorNode is just very easy to use for simple scripting, compared to the worklets.