Skip to content
A javascript audio library
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
dist
docs
src
.gitignore
.npmignore
README.md
gulpfile.js
package.json
tsconfig.json
yuidoc.json

README.md

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();
});
You can’t perform that action at this time.