modplayer

Amiga MOD player


Keywords
mod, amiga, music, tracker, protracker, player
License
MIT
Install
npm install modplayer@0.0.7

Documentation

modplayer

TypeScript mod player/tracker.

Usage

import { loadUrl } from "modplayer";

let player;

window.play = () => {
  if (!player) {
    player = loadUrl("/assets/cooltune.mod", { autoplay: true });
  } else {
    player.position = 0;
    player.row = 0;
  }
};

document.getElementById("app").innerHTML = `
<button onclick="play()">Play</button>
`;

CodeSandbox example

Credits

Based upon @electronoora's webaudio-mod-player.

Converted to TypeScript and published to npm by Alasdair McLeay.