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