0.1.1 • Published 9 years ago

waaoffset v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

WAAOffset

A simple offset node (or constant value) for Web Audio API.

Installation

You can grab the latest browser build from dist/ or install through npm with npm install waaoffset

Usage

Create :

var context = new AudioContext()
  , offsetNode = new WaaOffset(context)

Connect :

// `WAAOffset.connect` takes the same arguments as `AudioNode.connect`
offsetNode.connect(someOtherNode)

Control :

// `WAAOffset.offset` is an `AudioParam`
offsetNode.offset.setValueAtTime(0.5, 10)

Build

npm run build

Run the tests

Run npm build.tests. It will create a waatest folder in the root of the package. Then open waatest/index.html in a web browser.