Skip to content

Generate a single sound in the browser without any binary file. Uses the Web Audio API.

License

Notifications You must be signed in to change notification settings

ebabel-games/ebabel-sound

Repository files navigation

ebabel-sound

Build Status

Generate a single sound in the browser without any binary file. Uses the Web Audio API.

Module install and usage in your game

Install

npm install --save ebabel-sound

Usage

const Sound = require('ebabel-sound');

const middleA = new Sound(0, 440, 0.2);

Development of this module

Fork this repository on Github, git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.

  • fork this repository on github.com
  • git clone your forked repository.
  • git checkout develop

First step when developing

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

About

Generate a single sound in the browser without any binary file. Uses the Web Audio API.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published