Learn R Programming

musicXML (version 1.0.1)

pitchMapping: Pitch Mapping.

Description

Map a series of values into a series of pitches

Usage

pitchMapping(
  x,
  pitches = c("A4", "C5", "D5", "E5", "G5", "A5"),
  qtrans = NULL,
  ...
)

Value

A list of pitch objects.

Arguments

x

Vector or data frame, series to be mapped

pitches

Vector of string, pitch scale (default: A minor pentatonic)

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
p <- pitchMapping(x=rnorm(100))

Run the code above in your browser using DataLab