MSXplay.js はブラウザ内で MSX の音楽 (PSG,SCC,OPLL) をエミュレーション再生する実験的なサウンドプレイヤーです。 C言語版の libkss を Emscripten で JavaScript に変換して利用しています。
音声の再生にはブラウザの Web Audio API を使用しています。
MSXplay.js is an experimental MSX sound player which emulates PSG, SCC and OPLL on the JavaScript engine in the browser. The emulation core is based on libkss in C. Emscripten is used to build JavaScript version of libkss.
To play audio stream directly on the browser, we use Web Audio API interface.
Supported Browsers
Chrome または FireFox 推奨です。IE は Web Audio API をサポートしないため対応予定はありません。Microsoft Edge でも再生できますが、再生が極端に低速になる場合があるようです。
We recommend Chrome or FireFox. We have no plan to support any version of IE since they do not provide Web Audio API interface. Microsoft Edge is supported but slower than other browsers.
| Chrome | FireFox | Safari | IE | Edge |
|---|---|---|---|---|
| 50+ | 42+ | 9.1+ | x | 20+ |
The browser icons by alrra/browser-logos
Demo Player
次のプレーヤーパネルの左側にある再生ボタンを押してください。演奏が始まります。
To listen the demo sound, press play button on the left in the player panel below.
ご自身の音楽ファイルを再生してみたい方は、以下のパネルにファイルをドロップしてください。
対応フォーマットは KSS, BGM(MuSICA), MGS, MPK, OPX です。
If you want to test your own sound files, drag and drop them to the panel below.
The supported formats are KSS, BGM(MuSICA), MGS, MPK and OPX.
MML Compiler
MGSDRV用のMMLコンパイラ MGSC.ROM のエミュレータも mgsc-js として JavaScript で動作するバージョンがあります。これを MSXplay.js と組み合わせて MML をブラウザで直接コンパイルする環境を実現しました。MML EDITOR からお試しください。MML の文法は MGSC.COMの仕様 のとおりです。
A emulator of MML compiler for MGSDRV (aka MGSC.ROM) is also available as mgsc-js for JavaScript. Using this with MSXplay.js, we can compile MML and play its sound directly on the browser. Try MML EDITOR. The MML grammer of MGSDRV can be found at MGSC.COM specification (japanese).