oversample property of the
WaveShaperNode interface is an enumerated value indicating if oversampling must be used. Oversampling is a technique for creating more samples (up-sampling) before applying a distortion effect to the audio signal.
Once applied, the number of samples is reduced to its initial numbers. This leads to better results by avoiding some aliasing, but comes at the expense of a lower precision shaping curve.
oversample values are:
|Do not perform any oversampling.
|Double the amount of samples before applying the shaping curve.
|Multiply by 4 the amount of samples before applying the shaping curve.
BaseAudioContext.createWaveShaper() for example code.
|Web Audio API
BCD tables only load in the browser