lilyinput | R Documentation |
A function (in development!) that writes a file to be processed by LilyPond by extracting the relevant information (e.g. pitch, length, ...) from columns of a data frame. The music notation software LilyPond can “transcribe” such an input file into sheet music.
lilyinput(X, file = "Rsong.ly", Major = TRUE, key = "c",
clef = c("treble", "bass", "alto", "tenor"), time = "4/4",
endbar = TRUE, midi = TRUE, tempo = "2 = 60",
textheight = 220, linewidth = 150, indent = 0, fontsize = 14)
X |
A data frame containing 4 named components (columns):
|
file |
The file to be written for LilyPond's input. |
Major |
Logical indicating major key (if |
key |
Keynote, necessary to set sharps/flats. |
clef |
Integer indicating the kind of clef, supported are |
time |
Character indicating which meter to use, examples are: |
endbar |
Logical indicating whether to set an ending bar at the end of the sheet music. |
midi |
Logical indicating whether Midi output (by LilyPond) is desirable. |
tempo |
Character specifying the tempo to be used for the Midi file if |
textheight |
Textheight of the sheet music to be written by LilyPond. |
linewidth |
Linewidth of the sheet music to be written by LilyPond. |
indent |
Indentation of the sheet music to be written by LilyPond. |
fontsize |
Fontsize of the sheet music to be written by LilyPond. |
Details will be given when development has reached a stable stage ...!
Nothing is returned, but a file
is written.
This function is in development!!!
Everything (and in particular its user interface) is subject to change!!!
Andrea Preußer and Uwe Ligges ligges@statistik.tu-dortmund.de
The LilyPond development team (2005): LilyPond - The music typesetter. https://lilypond.org/, Version 2.7.20.
Preußer, A., Ligges, U. und Weihs, C. (2002): Ein R Exportfilter für das Notations- und Midi-Programm LilyPond. Arbeitsbericht 35. Fachbereich Statistik, Universität Dortmund. (german)
quantMerge
prepares the data to be written into the LilyPond format;
quantize
and quantplot
generate another kind of plot;
and exhaustive example is given in tuneR.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.