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")
}
flujoo/gm documentation built on July 12, 2024, 4:56 p.m.