18 The Delay Node
In the world of creative audio, delays are a common method used to create time-based effects. In this chapter, you will learn how to use the delay node to create the most common delay effects: echo, slap back, and ping-pong.
The Delay Node
The delay node is used to adjust the time between when an input source plays and when it becomes audible. The following example connects an audio buffer to a delay node. The delayTime.value property determines the delay time in seconds.
var sound = audioContext.createBufferSource();var delay = audioContext.createDelay();delay.delayTime.value = 1; // One secondsound.buffer = audioBuffer; ...
Get JavaScript for Sound Artists now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.