j-echo

0.0.2 • Public • Published

jecho


jecho is a simple javascript audio library

Get started

  1. Download the latest version of jecho
  2. Create a webpage and include jecho inside:
<head>
    <script src="path/to/libs/jecho/dist/jecho.min.js"></script> 
</head>
  1. Have fun with audio :)

Create a sound

var audio = jecho.Audio.load('my/file').then(function()
{
    audio.play();
});

What can I do with this audio ?

  • change the pitch
  • change the volume
  • change the pan
  • make it loop
  • change the position
  • add filters
  • ... may be more !

For more information, please check the API: https://dooxe.github.io/jecho/index.html

Filtering

var audio = new jecho.Audio();
audio.addFilter(jecho.AudioFilter.create(
    function(channel,input,output,length)
    {
        for(var i = 0; i < length; ++i)
        {
            output[i] = 0.5 * input[i];
        }
    })
);
audio.load('my/file').then(function()
{
    audio.play();
});

Readme

Keywords

Package Sidebar

Install

npm i j-echo

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dooxe