Learn R Programming

gm

Create music with R.

Example

library(gm)

music <- 
  Music() +
  Meter(4, 4) +
  Line(c("C5", "D5", "E5", "F5"))
  
show(music)

Installation

Install gm:

install.packages("gm")

# Or install the development version from GitHub
pak::pak("flujoo/gm")

Install MuseScore. MuseScore is open source and free notation software.

More

See vignette("gm") for a complete guide to gm.

Copy Link

Version

Install

install.packages('gm')

Monthly Downloads

439

Version

2.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Renfei Mao

Last Published

July 10th, 2024

Functions in gm (2.0.0)

Turn

Create Turn Object
Velocity

Create Velocity Object
Tremolo

Create Tremolo Object
export

Export Music Object
Trill

Create Trill Object
gm-internal

Internal gm Functions
show

Show Music Object
+.Music

Add Component to Music Object
Notehead

Create Notehead Object
Tie

Create Tie Object
Tempo

Create Tempo Object
Accidental

Create Accidental Object
Clef

Create Clef Object
Grace

Create Grace Object
Hairpin

Create Hairpin Object
Dynamic

Create Dynamic Object
Instrument

Create Instrument Object
Key

Create Key Object
Articulation

Create Articulation Object
Fermata

Create Fermata Object
Breath

Create Breath Object
Stem

Create Stem Object
Schleifer

Create Schleifer Object
Line

Create Line Object
Music

Initialize Music Object
Meter

Create Meter Object
Slur

Create Slur Object
Lyric

Create Lyric Object
Pedal

Create Pedal Object
Mordent

Create Mordent Object