Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joric/bmxplayjs
Bmxplay, JavaScript version with modern OOP and closures
https://github.com/joric/bmxplayjs
Last synced: 5 days ago
JSON representation
Bmxplay, JavaScript version with modern OOP and closures
- Host: GitHub
- URL: https://github.com/joric/bmxplayjs
- Owner: joric
- Created: 2017-06-09T19:32:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T07:17:08.000Z (3 months ago)
- Last Synced: 2024-08-19T07:40:13.556Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BmxplayJS
Bmxplay, JavaScript version. Written in "modern" OOP with closures (where applicable).
For C version and Buzz-compatible machines see my original [bmxplay](https://github.com/joric/bmxplay) project.
## Demo
[http://joric.github.io/bmxplayjs](http://joric.github.io/bmxplayjs)
## Installation
npm:
```
npm install && npm run-script compile
```## API
- `Load(bytes: string): number`
- `SetCallback(callback: function({pos:number, size:number})): void`
- `Play(): boolean`
- `Stop(): boolean`
- `SetPos(pos: number): void`
- `IsPlaying(): boolean`
- `SetVolume(vol: number): void`
- `Render(callback: function(data: array), repeats: number): void`
- `GetOscData(type: number, size: number, smooth: number): array`## License
MIT