\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.30"
-
-\score {
- \notes {
-
- \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
+ }
}
- \paper{ raggedright = ##t }
}