powered by
Write a score to a musicXML-formatted file
writeMXL(s, file, ...)
No return value, called for side effects.
Score, score object to be written
Character, destination file
additional arguments passed to method xml2::write_xml
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