WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.04k stars 165 forks source link

add AudioNode methods function for manipulation #2573

Closed annopnod closed 4 months ago

annopnod commented 4 months ago

current Instance methods AudioNode.connect(...) AudioNode.disconnect(...)

add AudioNode.parentNode AudioNode.Nodes AudioNode.type

how to use AudioNode.parentNode this.compressor.connect(this.panner); this.panner.connect(this.analyser); this.analyser.connect(this.ctx.destination);

this.panner.parentNode return this.compressor this.analyser.parentNode return this.panner

how to use AudioNode.Nodes this.compressor.connect(this.gain1); this.compressor.connect(this.gain2); this.compressor.connect(this.gain3);

this.compressor.Nodes return array this.gain1,this.gain2,this.gain3

how to use AudioNode.type this.compressor.type return string "DynamicsCompressor" this.gain return string "gain "