powered by
Maps a series of values into pitches of notes
pitchMapping(x, notes)
a character vector representing the original values transformed into pitches
Numeric vector
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)
pitchMapping(x=1:10,notes=c('C4','E4','G4')) pitchMapping(rnorm(20),notes=c('E3','Gb3','G3','A3','B3','C4','D4'))
Run the code above in your browser using DataLab