Tone.Gain

↳ EXTENDS Tone

A thin wrapper around the Native Web Audio GainNode. The GainNode is a basic building block of the Web Audio API and is useful for routing audio and adjusting gains.

CONSTRUCTOR

new Tone.Gain ( [
gain
] , [
units
] )
gain

The initial gain of the GainNode

type: Number
optional
units

The units of the gain parameter.

type: Tone.Type
optional

DEFAULTS

{
gain : 1 ,
convert : true
}

Members

.gain

Gain #

The gain parameter of the gain node.

</>

Methods

.dispose ( )

#
↪ returns Tone.Gain

this

Clean up.

</>
docs generated Dec 17 2018