At the moment I have the following code
AudioContext = window.AudioContext || window.webkitAudioContext;
context = new AudioContext({latencyHint: 'interactive'});
processor = context.createScriptProcessor(bufferSize, 1, 1);
processor.connect(context.destination);
context.resume();
I need to migrate the AudioWorkletNode. The main function here is the "createScriptProcessor". I am struggling to find the equivalent of this. Please help!