R/4-musicxml-accidental.R

Defines functions insert.Accidental to_MusicXML.Accidental

Documented in insert.Accidental to_MusicXML.Accidental

#' @keywords internal
#' @export
to_MusicXML.Accidental <- function(x, ...) {
  MusicXML(
    "accidental",
    x[["name"]],
    if (x[["bracket"]]) list(parentheses = "yes") else NULL
  )
}


#' @keywords internal
#' @export
insert.Accidental <- function(x, to, ...) {
  insert_note_child(x, to, "first")
}
flujoo/gm documentation built on July 12, 2024, 4:56 p.m.