altnode.StaticStereoPannerNode
Installation
npm install -S altnode.static-stereo-panner-node
API
StaticStereoPannerNode
constructor(audioContext: AudioContext)
Instance attributes
Example
import StaticStereoPannerNode from "altnode.static-stereo-panner-node";
let audioContext = new AudioContext();
let bufSrc = audioContext.createBufferSource();
let panner = new StaticStereoPannerNode(audioContext);
bufSrc.buffer = RhythmLoop;
bufSrc.loop = true;
bufSrc.start();
bufSrc.connect(panner);
panner.pan.value = 0.25;
panner.connect(audioContext.destination);
LICENSE
MIT