R/4-musicxml-fermata.R

Defines functions insert.Fermata to_MusicXML.Fermata

Documented in insert.Fermata to_MusicXML.Fermata

#' @keywords internal
#' @export
to_MusicXML.Fermata <- function(x, ...) {
  MusicXML(
    "fermata",
    fermatas[["musicxml"]][which(fermatas == x[["shape"]], TRUE)[1]],
    list(type = if (x[["above"]]) "upright" else "inverted")
  )
}


#' @keywords internal
#' @export
insert.Fermata <- function(x, to, ...) {
  insert_notation(x, to, "last")
}

Try the gm package in your browser

Any scripts or data that you put into this service are public.

gm documentation built on Sept. 11, 2024, 6:11 p.m.