Skip to content

xueqino1/XSound

 
 

Repository files navigation

XSound

HTML5 Web Audio API Library

Build Status

Overview

This is full stack library for Web Audio API.
In concrete, this library may be useful to implement the following features.

  • Create Sound
  • Play the One-Shot Audio
  • Play the Audio
  • Play the Media (Fallback by HTML5 MediaElement)
  • Streaming (by WebRTC)
  • MIDI (by Web MIDI API)
  • MML (Music Macro Language)
  • Effectors (Compressor / Wah / Equalizer / Tremolo / Phaser / Chorus / Delay / Reverb ...etc)
  • Visualization (Overview in Time Domain / Time Domain / Spectrum)
  • Recording (Create WAVE file)
  • Session (by WebSocket)

Demo

The application that uses this library is in the following URL.
Please use Chrome, Opera, Safari, Firefox.

Now, I'm creating website for Web Audio API. Please refer to the following site for understanding API Document.

Installation

$ npm install xsound

or,

$ bower install xsound

In the case of using WebSocket,

$ npm install websocket

or,

$ npm install ws

Usage

<script type="text/javascript" src="xsound.min.js"></script>

In the case of development,

<script type="text/javascript" src="xsound.js></script>

In the case of using WebSocket,

$ node xsound-server-session-websocket.js

or,

$ node xsound-server-session-ws.js

Default port number is 8000.
This port number can be changed by designating argument.
For example,

$ node xsound-server-session-websocket.js 8080

In the case of recording log, the path of log file must be designated by the 2nd argument.

$ node xsound-server-session-websocket.js 8080 websocket.log

API Document

License

Copyright (c) 2012, 2013, 2014 Tomohiro IKEDA (Korilakkuma)
Released under the MIT license

About

HTML5 Web Audio API Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%