R/4-musicxml-pedal.R

Defines functions insert.Pedal to_MusicXML.Pedal

Documented in insert.Pedal to_MusicXML.Pedal

#' @keywords internal
#' @export
to_MusicXML.Pedal <- function(x, type, ...) {
  attributes <- list(type = type, sign = "yes", line = "no")
  musicxml <- MusicXML("pedal", NULL, attributes)
  musicxml <- MusicXML("direction-type", musicxml)
  MusicXML("direction", musicxml)
}


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