Learn R Programming

musicXML (version 1.0.1)

toMXL.measure: Measure to MXL (MusicXML)

Description

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

Usage

# S3 method for measure
toMXL(x)

Value

A MusicXML string.

Arguments

x

measure to be converted.

Examples

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

Run the code above in your browser using DataLab