MicromodUser Guide

Overview

Micromod is a (Java only) music player for MOD, S3M, and XM files. It wraps the excellent Micromod by Martin Cameron.

Quick Start

  1. Create a text file called Example.fan, making sure the file MyTune.mod exists:
    using concurrent
    using afMicromod
    
    class Example {
    
        Void main() {
            player := Micromod(ActorPool(), File(`MyTune.mod`))
            player.play(Channels.stereo)
    
            Actor.sleep(22sec)
    
            player.stop
        }
    }
    
  2. Run Example.fan as a Fantom script from the command line:
    C:\> fan Example.fan
    
    [afMicromod] Playing `file:/.../MyTune.mod`
    [afMicromod] Stopping `file:/.../MyTune.mod`

.mod Files?

.MOD files are music files created by Music Tracker Software such as OctoMED. They were prominent in the Amiga DemoScene. See the Equninox Slammer page for some example .mod files.