Several methods are implemented for the classes noteworthy, noteinfo, and music. See tabr-methods() for more details on methods for tabr classes.

# S3 method for class 'noteworthy'
length(x)

# S3 method for class 'noteinfo'
length(x)

# S3 method for class 'music'
length(x)

# S3 method for class 'lyrics'
length(x)

Arguments

x

object.

Examples

# 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