]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/balloon.ly
(mangle_cxx_identifier): new
[lilypond.git] / input / regression / balloon.ly
1
2 \header {
3   texidoc = "With balloon texts, objects in the output can be marked,
4 with lines and explanatory text added."
5 }
6 \version "2.7.31"
7
8 \layout{ raggedright = ##t }
9
10 {
11   
12   \relative c'  {
13
14     %% by hand:
15     \once\override Stem #'stencil = #ly:balloon-interface::print
16     \once\override Stem #'original-stencil = #ly:stem::print
17     \once\override Stem #'balloon-text = #"I'm a stem"
18     \once\override Stem #'balloon-text-offset = #'(3 . 4)
19     \once\override Stem #'balloon-text-props
20     = #'((font-family .  roman))
21
22
23     %% use predefd function. 
24     \context Voice \applyOutput #(add-balloon-text
25                                   'NoteHead "heads, or tails?"
26                                   '(0 . -3))
27
28     
29     c8
30   }
31 }