Skip to content

Repository files navigation

modp

Video game music player.

fft scope

Currently supported backends are libopenmpt and game music emulator. Should play many files directly with playlist support (for song lengths and titles) from *.joshw.info.

Command line options:

-p    Initial path, default is "."
-f    Path to a BDF font, default is an internal font
-v    Pixel-double font vertically, default is 0
-a    Auto increment at min length/song end, default is 1
-n    Random song at auto increment, default is 0
-m    Song minimum length, default is 0
-w    Window width, default is 800
-e    Window height, default is 480
-l    Framerate limit, default is 60.00
-r    Background color red component, default is 0.00
-g    Background color green component, default is 0.33
-b    Background color blue component, default is 0.67

-h    Show default command line options

Building

Windows/Linux

Uses MSYS2 on Windows.

  • Download libopenmpt from here, build and install.
  • Download game-music-emu 0.6.2, from here, apply contrib/gme-0.6.2-playlist_patch.diff, build and install (use -G "MSYS Makefiles" if on Windows). The patch improves playlist compatibility with music files from *.joshw.info.
  • Install prerequisites (libportaudio, libarchive, SDL2, fftw etc).
  • run ./configure && make Building on ubuntu +22:
sudo apt update
sudo apt install build-essential git cmake libsdl2-dev libarchive-dev portaudio19-dev libxmp-dev libopenmpt-dev libfftw3-dev libsidplayfp-dev
git clone https://github.com/intealls/modp.git
cd modp
git clone https://bitbucket.org/mpyne/game-music-emu.git
cd game-music-emu/
# patch, build and install gme
patch -p1 < ../contrib/gme-b3d158a-playlist.patch
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local
make && make install
cd ..
# build modp
./configure
make

Notes

You can find a bunch of interesting bitmap fonts to try out here, not all of them work though.

About

Video game music player

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages