Next: , Up: Educational use



5.18.1 Balloon help

Elements of notation can be marked and named with the help of a square balloon. The primary purpose of this feature is to explain notation.

The following example demonstrates its use.

     \context Voice {
       \applyoutput
         #(add-balloon-text 'NoteHead "heads, or tails?"
         '(1 . -3))
       c8
     }

[image of music]

The function add-balloon-text takes the name of a grob, the label to print, and the position where to put the label relative to the object. In the above example, the text “heads or tails?” ends 3 spaces below and 1 space to the right of the marked head.

See also

Program reference: text-balloon-interface (lilypond-internals) .

Examples: input/regression/balloon.ly.

Read comments on this page, or add one.

This page is for LilyPond-2.5.11 (development-branch).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.