Skip to content

WebAudioHaptics/WAAOffsetNode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAAOffsetNode

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 WAAOffsetNode(context)

Connect :

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

Control :

// `WAAOffsetNode.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.

About

Audio offset node for web audio API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%