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

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

notate("8", "Solo")
#> [1] "8;^\"Solo\""
phrase("c'~ c' d' e'", pc(notate(8, "First solo"), "8 8 4."), "5 5 5 5")
#> <Musical phrase>
#> <c'~\5>8^"First solo" <c'\5>8 <d'\5>8 <e'\5>4.