🎶 Library for declaratively manipulating the Web Audio API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
docsSrc
jest
src
test
.gitignore
.npmignore
.nvmrc
.prettierrc
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENCE.md
README.md
jest.config.js
package-lock.json
package.json
rollup.config.js
tsconfig.json
tslint.json

README.md

virtual-audio-graph

npm version Build Status dependencies

Overview

Small and dependency-free library for declaratively manipulating the Web Audio API.

virtual-audio-graph manages the state of the audio graph so this does not have to be done manually. Simply declare what you would like the audio graph to look like and virtual-audio-graph takes care of the rest.

Inspired by virtual-dom and React.

Installation

npm i -S virtual-audio-graph

virtual-audio-graph is distributed as a bundled CJS module by default, however, there is also a module property in its package.json so tools like Rollup and Webpack can consume an ES modules build.

Size

virtual-audio-graph is designed to be small and weighs in at 7.5kB minified (2.4kB minified & gzipped) according to bundlephobia (https://bundlephobia.com/result?p=virtual-audio-graph@1.0.2).

Docs

First check out the virtual-audio-graph guide for working examples and to understand how the library works.

Then see the API docs for all supported virtual audio node factory functions.

For an example of virtual-audio-graph working in a real application you can take a look at Andromeda which is one of my other projects.