getMeasures {musicXML} | R Documentation |
Get measures
Description
Create a series of measure objects from a series of notes.
Usage
getMeasures(notes, beats = 4, beatType = 4, mxlDivision = 96, ...)
Arguments
notes |
list of notes (typically created by function getNotes). |
beats |
number of beats (defaut signature is 4/4). |
beatType |
beat type (defaut signature is 4/4). |
mxlDivision |
Positive integer, musicXML "division" defining the time resolution, i.e. the shortest possible note. It is expressed as a fraction of a quarter note. The value of 96 allows allows using 64th notes and their triplet/dotted versions. |
... |
further arguments to be passed to function measure (typically, keySignature) |
Value
A list of measure objects.
Examples
m <- getMeasures(notes=getNotes(pitches=pitchMapping(x=rnorm(100))))
[Package musicXML version 1.0.1 Index]