Learn R Programming

musicXML (version 1.0.1)

score: Score constructor.

Description

Creates a new instance of a 'score' object

Usage

score(parts)

Value

An object of class 'score'.

Arguments

parts

List, either a list of measures for a single-part score or a list of 'parts' (lists of mesures) for a multi-part score

Examples

Run this code
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))

Run the code above in your browser using DataLab