altnode.FeedbackDelayNode
Installation
npm install -S altnode.feedback-delay-node
API
FeedbackDelayNode
constructor(audioContext: AudioContext, maxDelayTime = 1)
Instance attributes
delayTime: AudioParam
feedback: AudioParam
Example
import FeedbackDelayNode from "altnode.feedback-delay-node";
let audioContext = new AudioContext();
let bufSrc = audioContext.createBufferSource();
let delay = new FeedbackDelayNode(audioContext);
bufSrc.buffer = RhythmLoop;
bufSrc.loop = true;
bufSrc.start();
bufSrc.connect(delay);
delay.delayTime.value = 0.75;
delay.feedback.value = 0.9;
delay.connect(audioContext.destination);
LICENSE
MIT