spn2abc | R Documentation |
Convert SPN to standard octave.
spn2abc(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: |
https://en.wikipedia.org/wiki/Scientific_pitch_notation
https://en.wikipedia.org/wiki/ABC_notation
library(voice)
spn2abc('C4')
spn2abc('C5')
spn2abc('C4', to_lower = TRUE)
spn2abc(c('C4','D#7','E2'))
spn2abc(c('C4','D#7','E2'), to_lower = TRUE)
spn2abc(c('C4','D#7','E2'), spacing = FALSE)
spn2abc(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.