0
votes

How do I normalize a signal in web audio?

I guess, this can be done with a ConvolverNode. That node has an option normalize. However I don't know what values should go into the buffer in order not to distort the incoming signal other than normalizing it. IOW: I wonder what is the neutral convolution function.

Background: I am trying to normalize white noise that I piped through a bandpass filter (BiquadFilterNode). At low frequencies, the amplitude of the output from the filter is very small. Of course, I could put a gain node behind with a gain value that depends on the frequency. However, if normalization is straight forward, that seems to be a cleaner solution.

1

1 Answers

1
votes

There's no builtin normalization method. The ConvolverNode's normalization does something very different from what you want.