-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
70 lines (49 loc) · 2.18 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# openmpt <img src="man/figures/logo.png" align="right" height="139" copyright="cc-sa" alt="logo" />
<!-- badges: start -->
[](https://github.com/pepijn-devries/openmpt/actions/workflows/R-CMD-check.yaml)
[](https://pepijn-devries.r-universe.dev/openmpt)
[](https://CRAN.R-project.org/package=openmpt)

[](https://app.codecov.io/gh/pepijn-devries/openmpt)
<!-- badges: end -->
A [libopenmpt](https://lib.openmpt.org/) port for `R`. It reads, plays and converts
[Open ModPlug](https://openmpt.org) Tracker music.
It supports a wide range of music [file formats](https://wiki.openmpt.org/Manual:_Module_formats).
## Installation
Install latest developmental version from R-Universe:
``` r
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:
```sh
sudo apt-get install libopenmpt-dev portaudio19-dev
```
And on Fedora you need:
```sh
sudo dnf install libopenmpt-devel portaudio-devel
```
On RHEL/CentOS/RockyLinux you first need to enable EPEL:
```sh
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:
```{r example, eval=FALSE}
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](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.