pitchMapping | R Documentation |
Maps a series of values into pitches of notes
pitchMapping(x, notes)
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) |
a character vector representing the original values transformed into pitches
pitchMapping(x=1:10,notes=c('C4','E4','G4'))
pitchMapping(rnorm(20),notes=c('E3','Gb3','G3','A3','B3','C4','D4'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.