]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/balloon.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / input / regression / balloon.ly
index 3a9bd6154ae7375c16e0fab3b1c606575654ed4f..2acc43ff15e2b877f8a8add1ef9141ab9f9598ec 100644 (file)
@@ -1,32 +1,27 @@
 
 \header {
-    texidoc = "With balloon texts, objects in the output can be marked,
+  
+  texidoc = "With balloon texts, objects in the output can be marked,
 with lines and explanatory text added."
-    }
-\version "2.1.21"
-
-\score  {
- \notes {
-     
-   \relative c'  {
-
-       %% by hand:
-       \once\property Voice.Stem \set #'print-function = #Balloon_interface::print
-       \once\property Voice.Stem \set #'balloon-original-callback = #Stem::print
-       \once\property Voice.Stem \set #'balloon-text = #"I'm a stem"
-       \once\property Voice.Stem \set #'balloon-text-offset = #'(3 . 4)
-       \once\property Voice.Stem \set #'balloon-text-props
-         = #'((font-family .  roman))
+  
+}
+\version "2.14.0"
 
+\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
+    }
+  }
 
-      
-       c8
-       }
+  \layout {
+    \context {
+      \Score
+      \override PaperColumn #'keep-inside-line = ##f
+    }
   }
- \paper{ raggedright = ##t }
 }