writeMXL: writeMXL function

View source: R/utilities.R

writeMXLR Documentation

writeMXL function

Description

Write a score to a musicXML-formatted file

Usage

writeMXL(s, file, ...)

Arguments

s

Score, score object to be written

file

Character, destination file

...

additional arguments passed to method xml2::write_xml

Value

No return value, called for side effects.

Examples

m <- getMeasures(notes=getNotes(pitches=pitchMapping(x=rnorm(100))))
s <- score(m)
tfile= file.path(tempdir(),'myMusicXML.xml')
writeMXL(s,tfile)
file.remove(tfile)

benRenard/musicXML documentation built on Feb. 23, 2025, 6:57 a.m.