Several methods are implemented for the classes noteworthy
, noteinfo
, and
music
. See tabr-methods()
for more details on methods for tabr classes.
# noteworthy class examples
x <- "a b c"
length(x)
#> [1] 1
length(as_noteworthy(x))
#> [1] 3
length(as_noteworthy("a b*2 c*2"))
#> [1] 5
# noteinfo class examples
x <- "4- t8( t8)( t8) 4*2"
length(x)
#> [1] 1
length(as_noteinfo(x))
#> [1] 6
# music class examples
x <- "c,~4 c,1 c'e_'g'4-.*4"
length(x)
#> [1] 1
length(as_music(x))
#> [1] 6