octave | R Documentation |
Convert SPN to standard octave.
octave(x, to_lower = FALSE, spacing = TRUE)
x |
A vector containing a note in SPN (Scientific Pitch Notation). |
to_lower |
Logical. Should the string be lower case? Default: |
spacing |
Logical. Should the strin return spaces between notes? Default: |
library(voice)
octave('C4')
octave('C5')
all.equal(octave('C4'), octave('C4'))
octave('C4', to_lower = TRUE)
octave(c('C4','D#7','E2'))
octave(c('C4','D#7','E2'), to_lower = TRUE)
octave(c('C4','D#7','E2'), spacing = FALSE)
octave(c('C4','D#7','E2'), to_lower = TRUE, spacing = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.