virtual-audio-graph

Library for declaratively manipulating the Web Audio API
GitHub
356
Created 9 years ago, last commit 18 days ago
7 contributors
1.06k commits
Stars added on GitHub, month by month
0
0
0
0
0
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
=
Last week
0.0
/day
Last month
0.0
/day
Last 12 months
0.0
/day
npmPackage on NPM
Monthly downloads on NPM
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
No dependencies
README

virtual-audio-graph

npm version CI/CD NPM Netlify Status

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 11.9kB minified (3.3kB minified & gzipped) according to bundlephobia (https://bundlephobia.com/result?p=virtual-audio-graph@1.1.8).

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.