Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stagas/mod-player
- Owner: stagas
- Created: 2013-05-13T08:23:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-25T09:58:56.000Z (over 11 years ago)
- Last Synced: 2024-04-08T15:45:21.308Z (7 months ago)
- Language: JavaScript
- Homepage: http://stagas.github.io/mod-player
- Size: 1.59 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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