Skip to content

Instantly share code, notes, and snippets.

@jrosell
Created July 10, 2024 08:10
Show Gist options
  • Save jrosell/8f30003bfaffb8fc5efe608f644097a9 to your computer and use it in GitHub Desktop.
Save jrosell/8f30003bfaffb8fc5efe608f644097a9 to your computer and use it in GitHub Desktop.
Head, shoulders, knees and toes...
# Ubuntu/debian: sudo apt-get install musescore
# pak::pak("flujoo/gm")
Sys.setenv(MUSESCORE_PATH = "/usr/bin/musescore")
library(gm)
(Music() +
Meter(4, 4) +
Line(
pitches = c(
c("G4", "A4", "G4", "F#4"),
c("G4", "E4", "G4", "G4", "G4")
),
durations = c(
c(2, 1, 1, 1),
c(1, 2, 1, 1, 2)
)
)) |>
show(x = _)
@jrosell
Copy link
Author

jrosell commented Jul 10, 2024

file14c299379b56cc.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment