Skip to content

openmusic/audio-node-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openmusic-audio-node-template

Template for building audio nodes

Installing and building

Clone the repository, and then copy the files to your own folder and initialise your own git repository.

Install build dependencies, etc with:

npm install

To build a bundle for the demo:

npm run build

Demo files will be placed in build/. Open build/index.html to access the demo.

Remember to rebuild the bundle each time you make a change to the demo or node code. Alternatively you can also run the watch task, so it will watch for file changes and then rebuild the bundle for you:

npm run watch

Usage

Create an instance of the node by passing it an audio context:

var audioContext = new AudioContext();
var AudioNode = require('AudioNode');
var audioNode = AudioNode(audioContext);

Audio nodes can be connected together like any other Web Audio node:

var gainNode = audioContext.createGain();
audioNode.connect(gainNode);

About

Template for Open Music audio nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published