writeMXL {musicXML}R 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)

[Package musicXML version 1.0.1 Index]