measure {musicXML} | R Documentation |
Measure constructor.
Description
Creates a new instance of a 'measure' object
Usage
measure(
number,
notes,
beats = 4,
beatType = 4,
keySignature = 0,
mode = "major"
)
Arguments
number |
Integer (>0), measure number. |
notes |
List of 'note' objects. Sum of notes durations should be compatible with the measure time signature |
beats |
Integer (>0), time signature is beats/beatType (default 4/4). |
beatType |
Integer (>0), time signature is beats/beatType (default 4/4). |
keySignature |
Integer, representing the number of flats (<0) or sharps (>0). |
mode |
Character, mode. Can be one of major, minor, dorian, phrygian, lydian, mixolydian, aeolian, ionian, locrian, and none. |
Value
An object of class 'measure'.
Examples
notes=list(note(p=pitch('Db5'),d=duration(2)),note(p=pitch('B5'),d=duration(2)))
m <- measure(number=1,notes=notes)
[Package musicXML version 1.0.1 Index]