tabr-length {tabr}R Documentation

Length for tabr classes

Description

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

Usage

## 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.

See Also

tabr-methods(), note-metadata()

Examples

# noteworthy class examples
x <- "a b c"
length(x)
length(as_noteworthy(x))
length(as_noteworthy("a b*2 c*2"))

# noteinfo class examples
x <- "4- t8( t8)( t8) 4*2"
length(x)
length(as_noteinfo(x))

# music class examples
x <- "c,~4 c,1 c'e_'g'4-.*4"
length(x)
length(as_music(x))

[Package tabr version 0.5.0 Index]