The ScriptProcessorNode has been marked as a deprecated feature and needs to be rewritten using AudioWorkletProcessor.
ScriptProcessorNode
AudioWorkletProcessor
demo code