An OpenMPT port for R. It reads, plays and converts Open ModPlug Tracker music. It supports a wide range of music file formats.

Installation

# install.packages("devtools")
devtools::install_github("pepijn-devries/openmpt")

On Debian/Ubuntu you need to install the developer version of libopenmpt and portaudio first:

sudo apt-get install libopenmpt-dev portaudio19-dev

And on Fedora you need:

sudo dnf install libopenmpt-devel portaudio-devel

On RHEL/CentOS/RockyLinux you first need to enable EPEL:

yum install -y epel-release
sudo yum install libopenmpt-dev portaudio19-dev

Example

You only need 3 lines of code to load the library, read a module and play it:

library(openmpt)

mod <- demo_mod()

play(mod)

Code of Conduct

Please note that the openmpt project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.