A libopenmpt port for R
. It reads, plays
and converts Open ModPlug Tracker music. It
supports a wide range of music file
formats.
Install latest developmental version from R-Universe:
install.packages("openmpt", repos = c('https://pepijn-devries.r-universe.dev', 'https://cloud.r-project.org'))
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
You only need 3 lines of code to load the library, read a module and play it:
library(openmpt)
mod <- read_mod(system.file("cyberrid", "cyberrid.mod", package = "openmpt"))
play(mod)
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.