Web Audio API's ScriptProcessor node
Questions tagged [scriptprocessor]
24 questions
17
votes
7 answers
AudioWorklet error: DOMException: The user aborted a request
I've successfully instantiated a simple AudioWorklet in React and wish to start a simple oscillator like in Google's example. In order to test run it, I am rendering a button whose onClick event calls the following:
src/App.jsx:
userGesture(){
…

spidercatnat
- 439
- 1
- 5
- 15
6
votes
2 answers
IIS web.config, any other % symbols apart from %s?
Regarding the scriptProcessor in the handlers section of IIS's web.config, are there any % symbols apart from %s (which seems to represent the requested filename)? For example, is %a a recognised macro/symbol? If there are others besides %s, where…

bugmagnet
- 7,631
- 8
- 69
- 131
5
votes
0 answers
How can I prevent breakup/choppiness/glitches when using an AudioWorklet to stream captured audio?
We've been working on a JavaScript-based audio chat client that runs in the browser and sends audio samples to a server via a WebSocket. We previously tried using the Web Audio API's ScriptProcessorNode to obtain the sample values. This worked well…

StephenL
- 181
- 1
- 4
5
votes
1 answer
Porting scriptprocessor based application to audioworklet
Since the old Webaudio scriptprocessor has been deprecated since 2014 and Audioworklets came up in Chrome 64 I decided to give those a try. However I'm having difficulties in porting my application. I'll give 2 examples from a nice article to show…

Niek
- 53
- 1
- 8
2
votes
1 answer
How to get the local day of week from timestamp in elasticsearch
I'm using the ingest pipeline script processors to extract the day of the week from the local time for each document.
I'm using the client_ip to extract the timezone, use that along with the timestamp to extract the local time, and then extract day…

Saba Far
- 133
- 2
- 9
2
votes
0 answers
Connect to AudioWorklet instead of ScriptProcessor when recording
I need to convert my ScriptProcessor logic to an AudioWorklet. The ScriptProcessor process is very easy and only a few lines of code, but I'm having a hard time converting it over to an AudioWorklet.
Here is my current process (the stream comes from…

Sound in Worship
- 468
- 3
- 6
2
votes
1 answer
scriptProcessorNode oscillator frequency
I am working on a web audio stochastic oscillator and am having trouble with the scriptProcessorNode. My algorithm uses a random walk to determine dynamic breakpoints in the waveform and then interpolates between them.
As the breakpoints move on…

Andrew Bernstein
- 31
- 6
2
votes
1 answer
Unique stereo input to ScriptProcessorNode
I am hoping to implement audio effects in the Web Audio API which require continuous access to two or more audio streams.
I can define a script processor with 2 input channels and 2 output channels:
var mod =…

suncannon
- 194
- 1
- 9
2
votes
1 answer
Do WebAudio scriptProcessorNodes *require* an output to be connected?
Here is a link to a simple jsFiddle which measures the loudness of a live input using web-audio (it outputs the values as a percentage to the console).
http://jsfiddle.net/XSnsF/
I was planning to have one input and no outputs, since there's no need…

Aptary
- 49
- 4
2
votes
0 answers
Web Audio API multiple scriptprocessor nodes
I've been searching a solution about nearly two days now for this problem.
I have a web audio api app that catches the microphone input. In one script processor i'm windowing the signal with a hanning window, which works fine when the audio chain…

rikner
- 95
- 1
- 7
1
vote
1 answer
Migrating lowpass filter from scriptProcessor (onaudioprocess) to AudioWorkletProcessor (process)
I'm facing an issue while migrating my library from the deprecated scriptProcessor to AudioWorklet.
Current implementation with ScriptProcessor
It currently use the AudioProcessingEvent, inputBuffer property, which is an AudioBuffer.
I apply to this…

David
- 39
- 8
1
vote
1 answer
Using a separate AudioContext / scriptProcessor Node in Wavesurfer
I'm attempting to use a separate context/script processor from Wavesurfer's default so I can manipulate the pitch of the audio independent of playback rate. When I attempt to give the context/script processor as parameters, and playback the audio, I…

SniperWolf N7
- 55
- 1
- 8
1
vote
1 answer
Error: AudioWorkletNode is undefined in React App
I'm trying to create an AudioWorklet in React. I'm using create-react-app and importing scripts that are working outside the context of React into App.jsx. It is failing to instantiate my AudioWorkletNode extension and throwing the following error:
…

spidercatnat
- 439
- 1
- 5
- 15
1
vote
1 answer
Chrome crash when utilizing multiple ScriptProcessor and Analyser nodes
I'm building a web app that allows users to evolve webaudio synthesizers (https://gensynth.ou.edu/#/evolve). However, on chrome, whenever you click refresh a few times with mutation amount turned all the way up and play around during evolution, the…

David Rice
- 1,111
- 1
- 11
- 24
1
vote
2 answers
How can I stop/pause a WebAudio ScriptProcessor node?
I can generate sounds using only createJavaScriptNode(...) on my HTML5 app. I need to generate white noise on the fly. The issue that I am having is that I can not stop/pause the generation for example setting null to the processor or the context.…

the_moon
- 553
- 1
- 7
- 21