tabr-length: Length for tabr classes

tabr-lengthR 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))

tabr documentation built on Sept. 12, 2024, 6:18 a.m.