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 noteworthy
head(x, ...)

# S3 method for noteinfo
head(x, ...)

# S3 method for music
head(x, ...)

# S3 method for lyrics
head(x, ...)

# S3 method for noteworthy
tail(x, ...)

# S3 method for noteinfo
tail(x, ...)

# S3 method for music
tail(x, ...)

# S3 method for lyrics
tail(x, ...)

Arguments

x

object.

...

number of elements to return.

Examples

# noteworthy class examples
x <- "a b c d e f g"
head(x, 2)
#> [1] "a b c d e f g"
head(as_noteworthy(x), 2)
#> <Noteworthy string>
#>   Format: space-delimited time
#>   Values: a b
tail(as_noteworthy(x), 2)
#> <Noteworthy string>
#>   Format: space-delimited time
#>   Values: f g

# noteinfo class examples
x <- "4x 4-.*8 2 4"
head(as_noteinfo(x))
#> <Note info string>
#>   Format: space-delimited time
#>   Values: 4x 4-. 4-. 4-. 4-. 4-.
tail(as_noteinfo(x))
#> <Note info string>
#>   Format: space-delimited time
#>   Values: 4-. 4-. 4-. 4-. 2 4

# music class examples
x <- "c,~4 c,1 c'e_'g'4-."
head(as_music(x), 2)
#> <Music string>
#>   Format: space-delimited time
#>   Values: c,~4 c,1
tail(as_music(x), 2)
#> <Music string>
#>   Format: space-delimited time
#>   Values: c,1 <c'e_'g'>4-.