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"
c(x, x)
#> [1] "a b c" "a b c"
c(as_noteworthy(x), x)
#> <Noteworthy string>
#> Format: space-delimited time
#> Values: a b c a b c
# noteinfo class examples
x <- "4- t8( t8)( t8) 4*2"
c(as_noteinfo(x), x)
#> <Note info string>
#> Format: space-delimited time
#> Values: 4- t8( t8)( t8) 4 4 4- t8( t8)( t8) 4 4
# music class examples
x <- "c,~4 c,1 c'e_'g'4-.*2"
c(as_music(x), x)
#> <Music string>
#> Format: space-delimited time
#> Values: c,~4 c,1 <c'e_'g'>4-. <c'e_'g'>4-. c,~4 c,1 <c'e_'g'>4-. <c'e_'g'>4-.
# phrase class examples
c(phrase(x), x)
#> <Musical phrase>
#> <c,~>4 <c,>1 <c' es' g'>4-. <c' es' g'>4-. <c,~>4 <c,>1 <c' es' g'>4-. <c' es' g'>4-.