toMXL.score {musicXML}R Documentation

Score to MXL (MusicXML)

Description

Convert an object of class 'score' into the corresponding MusicXML chunk

Usage

## S3 method for class 'score'
toMXL(x)

Arguments

x

score to be converted.

Value

A MusicXML string.

Examples

m1 <- measure(number=1,notes=list(note(p=pitch('Db5'),d=duration(2)),
                                  note(p=pitch('B5'),d=duration(2))))
m2 <- measure(number=2,notes=list(note(p=pitch('A5'),d=duration(2)),
                                  note(p=pitch('B5'),d=duration(2))))
s <- score(list(m1,m2))
toMXL(s)

[Package musicXML version 1.0.1 Index]