This is the primary or "base" class for p5.sound.js "nodes." It allows p5.sound.js audio sources and effects to connect to one another. It also allows you to change how loud they are.
Methods
amp
Adjust the amplitude of the p5 sound node. Amplitude is another way of saying "volume" or "loudness."
connect
Connects audio nodes together. You can connect a node to multiple destinations simultaneously by calling this method multiple times on additional destination nodes.
setInput
Set the input of an effect node.
disconnect
Disconnect an audio node from the main output. You may want to disconnect your audio node from the main output before you connect it to another effect. It is used in many of the p5.sound.js examples.
getNode
A private function that is called when an audio source tries to connect to this node.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5soundNode.js and open a pull request!
Related References
getAudioContext
Get the window's audio context.
setAudioContext
Sets the AudioContext to a specified context to enable cross library compatibility.
userStartAudio
starts audio processing in the window when called from a user interaction (such as mousePressed()).
userStopAudio
stops audio processing in the browser window.