0.1.0 • Published 9 years ago
@mohayonao/eq v0.1.0
EQ
EQ
Installation
Node.js
npm install @mohayonao/eq
API
EQ
constructor(audioContext: AudioContext, paramsList: object[]): AudioNode
Instance attributes
filters: BiquadFilter[]
Instance methods
connect(...args): void
disconnect(...args): void
Examples
import EQ from "@mohayonao/eq";
let eq = new EQ(audioContext, [
{ frequency: 400, Q: 10, gain: 20 },
{ frequency: 800, Q: 20, gain: 40 },
{ frequency: 1200, Q: 15, gain: 30 },
{ type: "lpf", frequency: 200, Q: 0.8 },
{ type: "hpf", frequency: 3200, Q: 0.8 },
]);
bufSrc.connect(eq);
eq.connect(audioContext.destination);
License
MIT
0.1.0
9 years ago