Skip to content

Web Audio API Wrap is a library that will help you use the javascript Web Audio API

License

Notifications You must be signed in to change notification settings

AbrahamCovelo/WAAW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAAW Web Audio API Wrap v0.1

Library to help you with Web Audio API

This javascript library will help you to produce any kind of sound using the Web Audio API implemented in all modern browsers. The library will abstract all the complexities of this API and enable you to create great online audio applications or simply add sound to your website.

Install

Place the file js/waaw.js on your webserver and include a script tag in your html pointing to it. That's all.

Examples

You can see several examples located in the folder examples/ or loading the /index.html in a browser.

How to use it

Probably the most simple example that produce a sound is this:

var instrument = WAAW.createInstrument();//Create a new instrument
instrument.createFromOscillator();//Assign a basic wave form to the instrument 
instrument.play(0,1,"C4");//plays immediately and during a second a C note

Check the examples folder to learn how to use microphones, load and play audio files (wav, mp3,... ), add effects to your sound sources or include graphical analyzers.

Enjoy it!

About

Web Audio API Wrap is a library that will help you use the javascript Web Audio API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published