1.4.0 • Published 6 years ago

stereo-panner-node v1.4.0

Weekly downloads
677
License
MIT
Repository
github
Last release
6 years ago

StereoPannerNode

Build Status NPM Version License

StereoPannerNode for legacy Web Audio API

http://webaudio.github.io/web-audio-api/#the-stereopannernode-interface

Installation

npm install stereo-panner-node

downloads:

Quick Example

At first, call polyfill() method.

require("StereoPannerNode").polyfill();
<script src="/path/to/stereo-panner-node.js"></script>
<script>StereoPannerNode.polyfill();</script>

Then, you can use createStereoPanner() method at AudioContext.

var stereoPanner = audioContext.createStereoPanner();

stereoPanner.pan.value = Math.random() * 2 - 1;

Demo

https://mohayonao.github.io/stereo-panner-node/

API

StereoPannerNode

  • constructor(audioContext: AudioContext)

Class Methods

  • polyfill(): void
    • install createStereoPanner() method to AudioContext.prototype if needed.
  • install(): void
    • install createStereoPanner() method to AudioContext.prototype force

Instance Attributes

  • pan: AudioParam readonly

AudioGraph

stereo-panner-node

License

MIT

1.4.0

6 years ago

1.3.4

6 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.2.0

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago