%% Generated by lilypond-book.py
%% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm]
\include "lilypond-book-preamble.ly"







% ****************************************************************
% Start cut-&-pastable-section 
% ****************************************************************

\paper {
  #(define dump-extents #t)
  
  indent = 0\mm
  line-width = 160\mm
}

\layout {
  
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "balloon.ly"

\header {
  texidoc = "With balloon texts, objects in the output can be marked,
with lines and explanatory text added."
}


\layout{ ragged-right = ##t }

{
  
  \relative c'  {

    %% by hand:
    \once\override Stem #'stencil = #ly:balloon-interface::print
    \once\override Stem #'original-stencil = #ly: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
  }
}



% ****************************************************************
% end ly snippet
% ****************************************************************
