Learn R Programming

musicXML (version 1.0.1)

writeMXL: writeMXL function

Description

Write a score to a musicXML-formatted file

Usage

writeMXL(s, file, ...)

Value

No return value, called for side effects.

Arguments

s

Score, score object to be written

file

Character, destination file

...

additional arguments passed to method xml2::write_xml

Examples

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

Run the code above in your browser using DataLab