Process an input signal with a delay effect.
Syntax
process(unit, delayTime, feedback)
Parameters
unit
Object: A p5.sound source such as an Oscillator, Soundfile, or AudioIn object.
delayTime
Number: The amount of delay in seconds. A number between 0 and 1.
feedback
Number: The amount of feedback. A number between 0 and 1.
Notice any errors or typos? Please let us know. Please feel free to edit src/effects/Delay.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.