Learn R Programming

musicXML (version 1.0.1)

durationMapping: Duration Mapping.

Description

Map a series of values into a series of durations

Usage

durationMapping(x, expMin = 0, expMax = 6, qtrans = NULL, ...)

Value

A list of duration objects.

Arguments

x

Vector or data frame, series to be mapped

expMin

Integer, minimum type is 2^expMin (default: 1 <=> whole note)

expMax

Integer, maximum type is 2^expMax (default: 64 <=> 16th note)

qtrans

function, quantile transformation to be applied before mapping For instance data can be "normalized" by using qnorm.

...

further arguments to be passed to qtrans.

Examples

Run this code
d <- durationMapping(x=rnorm(100))

Run the code above in your browser using DataLab