toMXL.measure {musicXML}R Documentation

Measure to MXL (MusicXML)

Description

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

Usage

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

Arguments

x

measure to be converted.

Value

A MusicXML string.

Examples

notes=list(note(p=pitch('Db5'),d=duration(2)),note(p=pitch('B5'),d=duration(2)))
m <- measure(number=1,notes=notes)
toMXL(m)

[Package musicXML version 1.0.1 Index]