tabr (version 0.3.5)

notate: Add text to music staff

Description

Annotate a music staff, vertically aligned above or below the music staff at a specific note/time.

Usage

notate(x, text, position = "top")

Arguments

x

character.

text

character.

position

character, top or bottom.

Value

a character string.

Details

This function binds text annotation in LilyPond syntax to a note's associated info entry. Technically, the syntax is a hybrid form, but is later updated safely and unambiguously to LilyPond syntax with respect to the rest of the note info substring when it is fed to phrase for musical phrase assembly.

Examples

Run this code
# NOT RUN {
notate("8", "Solo")
phrase("c'~ c' d' e'", pc(notate(8, "First solo"), "8 8 4."), "5 5 5 5")
# }

Run the code above in your browser using DataLab