Categorygithub.com/chriskillpack/modplayer
repositorypackage
0.1.0
Repository: https://github.com/chriskillpack/modplayer.git
Documentation: pkg.go.dev

# README

MOD player

Work in progress

Play MOD files.

Back in the mid-90's I was active in the PC demoscene and always relied on other people's MOD player code for the music. I never knew how they worked, so I decided many many years later to sit down and code one.

Right now only MOD files are supported. I hope to add S3M support.

Build

There are two binaries provided, modwav which converts MOD files to RIFF WAVE format files. This works on all platforms.

go install ./cmd/modwav
modwav -wav out.wav awesome.mod

The second binary is modplay which uses portaudio to play the MOD file. Only Windows supported for now. You will need to make sure portaudio_x64.dll is part of your DLL search path.

go install ./cmd/modplay
modplay awesome.mod

Docs

FireLight's MOD format document was the most useful document. I converted the original doc that is written with box drawing characters from PC code page 437 into Unicode.

I used micromod for some implementation ideas.