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:
And on Fedora you need:
On RHEL/CentOS/RockyLinux you first need to enable EPEL:
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.