noteinfo: Note info helpers

noteinfoR Documentation

Note info helpers

Description

Functions for working with note info strings.

Usage

info_duration(x)

info_slur_on(x)

info_slur_off(x)

info_slide(x)

info_bend(x)

info_dotted(x)

info_single_dotted(x)

info_double_dotted(x)

info_annotation(x)

info_articulation(x)

Arguments

x

character, note info string normally accompanying a noteworthy string for building phrase objects. x may also be a phrase object.

Details

If x is a phrase object, there are some parsing limitations such as tuplets and repeats.

Value

character

See Also

valid-noteinfo()

Examples

a <- notate("t8x", "Start here")
notes <- "a, b, c d e f g# a r ac'e' a c' e' c' r*3 ac'e'~ ac'e'"
info <- paste(a, "t8x t8-. 16 4.. 16- 16 2^ 2 4. 8( 4)( 4) 8*4 1 1")
x <- as_music(notes, info)

data.frame(
  duration = info_duration(x),
  slur_on = info_slur_on(x),
  slur_off = info_slur_off(x),
  slide = info_slide(x),
  bend = info_bend(x),
  dotted = info_dotted(x),
  dotted1 = info_single_dotted(x),
  dotted2 = info_double_dotted(x),
  annotation = info_annotation(x),
  articulation = info_articulation(x)
)

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