altnode.eq-node
altnode.EQNode
Last updated 5 years ago by mohayonao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install altnode.eq-node 
SYNC missed versions from official npm registry.

altnode.EQNode

Build Status NPM Version License

graph

Installation

npm install -S altnode.eq-node

API

EQNode

  • constructor(audioContext: AudioContext, paramsList: object[])

Instance methods

  • getAllFilters(): BiquadFilterNode[]
  • getFilterAtIndex(index: number): BiquadFilterNode
  • getFilterById(id: string): BiquadFilterNode

Example

import EQNode from "altnode.eq-node";

let audioContext = new AudioContext();
let bufSrc = audioContext.createBufferSource();
let eq = new EQNode(audioContext, [
  { frequency: 400, Q: 12, gain: 10 },
  { frequency: 800, Q: 16, gain: 20 },
  { id: "foo", frequency: 1200, Q: 14, gain: 30 },
  { id: "bar", frequency: 1600, Q: 12, gain: 20 },
  { type: "highpass", frequency: 200, Q: 0.9 },
  { type: "lowpass", frequency: 3200, Q: 3 }
]);

bufSrc.buffer = RhythmLoop;
bufSrc.loop = true;
bufSrc.start();
bufSrc.connect(eq);

eq.connect(audioContext.destination);

LICENSE

MIT

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

2 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |