]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/balloon.ly
Merge branch 'stable'
[lilypond.git] / input / regression / balloon.ly
index 909321a6681831b2624953d00973b3131bef072e..a60f89e57c1854641ed7f57a283a9043de41bbbf 100644 (file)
@@ -1,30 +1,18 @@
 
 \header {
+  
   texidoc = "With balloon texts, objects in the output can be marked,
 with lines and explanatory text added."
+  
 }
-\version "2.6.0"
+\version "2.12.0"
 
+\layout{ ragged-right = ##t }
+
+\new Voice \with {\consists "Balloon_engraver" }
 {
-  
   \relative c'  {
-
-    %% by hand:
-    \once\override Stem  #'print-function = #Balloon_interface::print
-    \once\override Stem  #'balloon-original-callback = #Stem::print
-    \once\override Stem  #'balloon-text = #"I'm a stem"
-    \once\override Stem  #'balloon-text-offset = #'(3 . 4)
-    \once\override Stem  #'balloon-text-props
-    = #'((font-family .  roman))
-
-
-    %% use predefd function. 
-    \context Voice \applyoutput #(add-balloon-text
-                                 'NoteHead "heads, or tails?"
-                                 '(0 . -3))
-
-    
-    c8
+    \balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
+    <c-\balloonText #'(-2 . -2) \markup { \simple #"hoi" }  >8
   }
 }
-\layout{ raggedright = ##t }