lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to "loosen up" the balloon box? (cool ossia trick you can use too)


From: Rick Hansen (aka RickH)
Subject: How to "loosen up" the balloon box? (cool ossia trick you can use too)
Date: Thu, 21 Sep 2006 13:43:25 -0700 (PDT)

In the example that follows I'm using a "helium balloon on a string" to point
at an ossia.  I like everything about this example except for the box
(balloon) that gets drawn around the note head.  Is there any way to "loosen
up" the box, that is, add some internal padding so that the inside edges of
the box wont actually touch the note head like it is now?  I swear I looked
everywhere but could not find any documentation on the "add-balloon-text"
thingy.  As always, the example that follows will run as-is.

Thanks Rick


% EXAMPLE BEGIN

\version "2.9.18"
\include "english.ly"

varFreeFormOssiaNotes = \relative c' {
   %1
   a'^\markup { \tiny \sans "alternative ending" } b c d
   |
   %2
   e f g a
   \bar "|."
}

varFreeFormOssia = \markup {
   \score {
       \new Staff \with {
            \remove Time_signature_engraver
            \remove Clef_engraver
            \override KeySignature #'transparent = ##t
            \override KeySignature #'space-alist =
                      #'((time-signature extra-space . 0.0)
                      (staff-bar extra-space . 0.0)
                      (right-edge extra-space . 0.0)
                      (first-note fixed-space . 0.0))
            \override KeySignature #'font-size = #'-10.0
            } % end ossia staff with
            {
               #(set-accidental-style 'modern)
               \clef "treble"
               \key ef \major
               \time 4/4
               \varFreeFormOssiaNotes
            } % end ossia staff music
       \layout {
            ragged-right = ##t
            ragged-last = ##t
            ragged-bottom = ##t
            ragged-last-bottom = ##t
            indent = 0.0\in
            system-count = #1
       } % end ossia layout
   } % end ossia score
} % end ossia markup



\score {

   \new Staff {
         #(set-accidental-style 'modern)
         \clef "treble"
         \key ef \major
         \time 4/4
         \relative c'' {
         %1
            g'4. g8 g2~ |
         %2
            g8 r <c,\3> ef \times 2/3 { <g\2>4 f ef } |
         %3
            <g a, ef'>1~ |
         %4
            g8 r c, ef \times 2/3 { g4 f ef } |
         %5
            <g af, ef'>1~ |
         %6
            g8 r c, ef \times 2/3 { g4 f ef } |
         %7
           \applyOutput #'Voice #(add-balloon-text
                          'NoteHead varFreeFormOssia
                          '(3 . -8))
           g2 gs2
         %8
            a2 gs2 |
         %9
            g2 gs2 |
         %10
            a2 bf2 \bar "||"

         } % end notes

   } % end staff

   \layout {
         ragged-right = ##f
         ragged-last = ##f
         ragged-bottom = ##t
         ragged-last-bottom = ##t
         indent = 0.0\in
         system-count = #2
         \context { \RemoveEmptyStaffContext }
         \context { \Score
            \override VerticalAxisGroup #'remove-first = ##t
         }
         \context { \Staff
            \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
         }
   } % end main layout

} % end main score


% EXAMPLE END


-- 
View this message in context: 
http://www.nabble.com/How-to-%22loosen-up%22-the-balloon-box--%28cool-ossia-trick-you-can-use-too%29-tf2314333.html#a6436235
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]