#' @keywords internal
#' @export
to_MusicXML.Key <- function(x, ...) {
MusicXML(
"key",
MusicXML("fifths", x[["key"]]),
list(number = x[["staff"]])
)
}
#' @keywords internal
#' @export
insert.Key <- function(x, to, ...) {
insert_attribute(x, to, x[["part"]] + 1, x[["bar"]])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.