pod afMicromod

A music player for MOD, S3M, and XM files

Classes

Micromod

A music player for MOD, S3M, and XM files; see Micromod.

Enums

Channels

Defines whether playback is Stereo or Mono.

Overview

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

Install

Install Micromod with the Fantom Repository Manager ( fanr ):

C:\> fanr install -r http://repo.status302.com/fanr/ afMicromod

To use in a Fantom project, add a dependency to build.fan:

depends = ["sys 1.0", ..., "afMicromod 1.0"]

Documentation

Full API & fandocs are available on the Status302 repository.

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`

Release Notes

v1.0.4

v1.0.2

  • New: Initial release.