Created
July 10, 2024 08:10
-
-
Save jrosell/8f30003bfaffb8fc5efe608f644097a9 to your computer and use it in GitHub Desktop.
Head, shoulders, knees and toes...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = _) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
file14c299379b56cc.mp4