Read any of the music tracker module file formats supported by libopenmpt: https://wiki.openmpt.org/Manual:_Module_formats.

read_mod(file, ...)

Arguments

file

File path or URL to read the file from. Binary connections are also supported.

...

Ignored

Value

A modplug class object. It is an external pointer, pointing to the module object in memory. It can be used for rendering audio.

Examples

## You can read from files
mod1 <- read_mod(system.file("cyberrid", "cyberrid.mod", package = "openmpt"))

# \donttest{
## but also URLs
mod2 <- read_mod("https://api.modarchive.org/downloads.php?moduleid=41529#elektric_funk.mod")
# }