spn2abc {voice}R Documentation

Convert SPN to ABC

Description

Convert SPN to standard octave.

Usage

spn2abc(x, to_lower = FALSE, spacing = TRUE)

Arguments

x

A vector containing a note in SPN (Scientific Pitch Notation).

to_lower

Logical. Should the string be lower case? Default: FALSE.

spacing

Logical. Should the strin return spaces between notes? Default: TRUE.

References

https://en.wikipedia.org/wiki/Scientific_pitch_notation

https://en.wikipedia.org/wiki/ABC_notation

Examples

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)

[Package voice version 0.5.4 Index]