View source: R/class_duration.R
MXLDurationToType | R Documentation |
Convert a MusicXML duration into a (type-dot-triplet), or a list of (type-dot-triplet) summing up to the requested duration. The requested MusicXML duration may be trimmed if it cannot be expressed as a multiple of the smallest available duration.
MXLDurationToType(mxlDuration, mxlDivision = 96)
mxlDuration |
Positive integer, music XML "duration" expressed in number of mxlDivision's. |
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. |
A list with the following fields:
type, numeric vector of types
dot, logical vector of dot flags
triplet, logical vector of triplet flags
exact, logical, FALSE if the requested duration had to be trimmed
MXLDurationToType(972)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.