pitchMapping {sequenceR}R Documentation

Pitch mapping function

Description

Maps a series of values into pitches of notes

Usage

pitchMapping(x, notes)

Arguments

x

Numeric vector

notes

character vector, notes onto which values are map (i.e. the musical scakle). Notes should be written in Scientific pitch notation, e.g. c('C4','E4','G4') (see https://en.wikipedia.org/wiki/Scientific_pitch_notation)

Value

a character vector representing the original values transformed into pitches

Examples

pitchMapping(x=1:10,notes=c('C4','E4','G4'))
pitchMapping(rnorm(20),notes=c('E3','Gb3','G3','A3','B3','C4','D4'))

[Package sequenceR version 1.0.1 Index]