레퍼런스 connect()

connect()

Sends the element's audio to an output.

The parameter, audioNode, can be an AudioNode or an object from the p5.sound library.

If no element is provided, as in myElement.connect(), the element connects to the main output. All connections are removed by the .disconnect() method.

Note: This method is meant to be used with the p5.sound.js addon library.

구문

connect(audioNode)

매개변수

audioNode
AudioNode|Object:

AudioNode from the Web Audio API, or an object from the p5.sound library

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

관련 레퍼런스