Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stagas/mod-player

module (.mod) player in javascript
https://github.com/stagas/mod-player

Last synced: 13 days ago
JSON representation

module (.mod) player in javascript

Awesome Lists containing this project

README

        

# mod-player

module (.mod) player in javascript

## Example

```js
function play(buffer){
if (playing) playing.disconnect();
var mod = new ModParser(buffer);
var player = new ModPlayer(mod, audio.sampleRate);
var node = playing = process(audio, sampleLength, player.process);
node.connect(audio.destination);
}
```

## Credits

* [gasman](https://github.com/gasman) [original](https://github.com/gasman/jsmodplayer)
* [BillyWM](https://github.com/BillyWM) [improvements (fork based upon)](https://github.com/BillyWM/jsmodplayer)

## License

MIT