LittleJS 1.31.0

AudioEffects

AudioDistortion

Distortion effect, overdrive for radios, damaged robots, and engines

Extends AudioEffect

Constructor

new AudioDistortion(amount, mix)audioEffects.js:289

Create a distortion effect

amount number optional, default 0.5

How hard to drive the signal, 0 is clean and 1 is crushed

mix number optional, default 1

Wet/dry balance, 0 is fully dry and 1 is fully wet

const radio = new AudioDistortion(.8);
voice.output = radio;

Members

Methods

Inherited from AudioEffect

Members

amount : numberaudioEffects.js:299

How hard the signal is driven, 0 is clean and 1 is crushed

node : WaveShaperNodeaudioEffects.js:303

The wave shaper node

Methods

setAmount(amount)audioEffects.js:311

Set how hard to drive the signal, rebuilds the shaping curve

amount number

0 is clean and 1 is crushed