score {musicXML}R Documentation

Score constructor.

Description

Creates a new instance of a 'score' object

Usage

score(parts)

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

Value

An object of class 'score'.

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))

[Package musicXML version 1.0.1 Index]