Tone.Gain
↳ EXTENDS ToneA 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
}