getMeasures: Get measures
Description
Create a series of measure objects from a series of notes.
Usage
getMeasures(notes, beats = 4, beatType = 4, mxlDivision = 96, ...)
Value
A list of measure objects.
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)
Examples
Run this codem <- getMeasures(notes=getNotes(pitches=pitchMapping(x=rnorm(100))))
Run the code above in your browser using DataLab