brown-noise-node
v1.0.0
Published
BrownNoiseNode for Web Audio API
Downloads
5
Readme
BrownNoiseNode
BrownNoise AudioNode for Web Audio API
Installation
npm install brown-noise-node
downloads:
API
PluckNode
constructor(audioContext)
Class Methods
install(): void
- install
createBrownNoise()
method toAudioContext.prototype
force
- install
Instance Methods
start(when: number): void
stop(when: number): void
Usage
var noise = new BrownNoiseNode(audioContext);
noise.start(audioContext.currentTime);
noise.stop(audioContext.currentTime + 4);
Install to AudioContext
At first, call install()
method.
require("brown-noise-node").install();
<script src="/path/to/brown-noise-node.js"></script>
<script>BrownNoiseNode.install();</script>
Then, you can use createBrownNoise()
method at AudioContext.
Demo
http://mohayonao.github.io/brown-noise-node/
License
MIT