GainNode
Defined in: packages/chain/src/nodes/gain-node.ts:3
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GainNode(
id?,name?,gainDb?):GainNode
Defined in: packages/chain/src/nodes/gain-node.ts:13
Parameters
Section titled “Parameters”string = "gain"
string = "Level Trim"
gainDb?
Section titled “gainDb?”number = 0
Returns
Section titled “Returns”GainNode
Properties
Section titled “Properties”bypassed
Section titled “bypassed”bypassed:
boolean=false
Defined in: packages/chain/src/nodes/gain-node.ts:7
Implementation of
Section titled “Implementation of”
readonlyid:string
Defined in: packages/chain/src/nodes/gain-node.ts:4
Implementation of
Section titled “Implementation of”
readonlykind:"gain"="gain"
Defined in: packages/chain/src/nodes/gain-node.ts:6
Implementation of
Section titled “Implementation of”mix:
number=1.0
Defined in: packages/chain/src/nodes/gain-node.ts:8
Implementation of
Section titled “Implementation of”
readonlyname:string
Defined in: packages/chain/src/nodes/gain-node.ts:5
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”getParam()
Section titled “getParam()”getParam(
id):number|undefined
Defined in: packages/chain/src/nodes/gain-node.ts:23
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number | undefined
Implementation of
Section titled “Implementation of”getParams()
Section titled “getParams()”getParams():
Record<string,number>
Defined in: packages/chain/src/nodes/gain-node.ts:35
Returns
Section titled “Returns”Record<string, number>
Implementation of
Section titled “Implementation of”prepare()
Section titled “prepare()”prepare(
_sampleRate):void
Defined in: packages/chain/src/nodes/gain-node.ts:20
Parameters
Section titled “Parameters”_sampleRate
Section titled “_sampleRate”number
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”process()
Section titled “process()”process(
input):Float64Array
Defined in: packages/chain/src/nodes/gain-node.ts:39
Parameters
Section titled “Parameters”Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>
Returns
Section titled “Returns”Float64Array
Implementation of
Section titled “Implementation of”reset()
Section titled “reset()”reset():
void
Defined in: packages/chain/src/nodes/gain-node.ts:21
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”setParam()
Section titled “setParam()”setParam(
id,value):void
Defined in: packages/chain/src/nodes/gain-node.ts:28
Parameters
Section titled “Parameters”string
number
Returns
Section titled “Returns”void