AudioEffects. AudioDistortion

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

Constructor

new AudioDistortion(amountopt, mixopt)

Create a distortion effect

Parameters:
NameTypeAttributesDefaultDescription
amountnumber<optional>
0.5

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

mixnumber<optional>
1

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

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

Extends

  • AudioEffect

Members

amount

Properties
TypeDescription
number

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

node

Properties
TypeDescription
WaveShaperNode

The wave shaper node

Methods

setAmount(amount)

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

Parameters:
NameTypeDescription
amountnumber

0 is clean and 1 is crushed