]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/balloon.ly
Doc-es: various updates.
[lilypond.git] / input / regression / balloon.ly
index f710b9bc5c7fab085a42e9a2182e5b812cc4ad3d..65264d48332cf1f00dc85fa391886f7b83552065 100644 (file)
@@ -1,31 +1,33 @@
 
 \header {
+  
   texidoc = "With balloon texts, objects in the output can be marked,
 with lines and explanatory text added."
-}
-\version "2.6.0"
-
-\layout{ raggedright = ##t }
-
-{
   
-  \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))
+}
+\version "2.17.6"
 
+\layout{ ragged-right = ##t }
 
-    %% use predefd function. 
-    \context Voice \applyoutput #(add-balloon-text
-                                 'NoteHead "heads, or tails?"
-                                 '(0 . -3))
+\score{
+  \new Voice \with {\consists "Balloon_engraver" }
+  {
+    \relative c'  {
+      \balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
+      <c-\balloonText #'(-2 . -2) \markup { \simple #"hoi" }  >8
+      \balloonLengthOn
+      \balloonGrobText #'Rest #'(-1 . -2) \markup{ "Rest" }
+      r
+      \balloonLengthOff
+      \balloonGrobText #'Script #'(-1 . -1) \markup{ "Accent" }
+      c4->
+    }
+  }
 
-    
-    c8
+  \layout {
+    \context {
+      \Score
+      \override PaperColumn.keep-inside-line = ##f
+    }
   }
 }