R/4-musicxml-breath.R

Defines functions insert.Breath to_MusicXML.Breath

Documented in insert.Breath to_MusicXML.Breath

#' @keywords internal
#' @export
to_MusicXML.Breath <- function(x, ...) {
  symbol <- x[["symbol"]]

  if (is.na(symbol)) {
    MusicXML("breath-mark")

  } else {
    MusicXML("breath-mark", symbol)
  }
}


#' @keywords internal
#' @export
insert.Breath <- function(x, to, ...) {
  insert_articulation(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.