joric / bmxplayjs

Bmxplay, JavaScript version with modern OOP and closures

Repository from Github https://github.comjoric/bmxplayjsRepository from Github https://github.comjoric/bmxplayjs

BmxplayJS

Bmxplay, JavaScript version. Written in "modern" OOP with closures (where applicable).

For C version and Buzz-compatible machines see my original bmxplay project.

Demo

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

About

Bmxplay, JavaScript version with modern OOP and closures


Languages

Language:HTML 58.8%Language:JavaScript 41.2%