Skip to content

Reads, renders and plays music tracker files using the libOpenMPT library

License

Notifications You must be signed in to change notification settings

pepijn-devries/openmpt

Repository files navigation

openmpt logo

R-CMD-check openmpt status badge version cranlogs codecov

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

Installation

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

Example

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)

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.

About

Reads, renders and plays music tracker files using the libOpenMPT library

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published