[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to "loosen up" the balloon box? (cool ossia trick you can use to
From: |
Mats Bengtsson |
Subject: |
Re: How to "loosen up" the balloon box? (cool ossia trick you can use too) |
Date: |
Fri, 22 Sep 2006 08:14:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 Red Hat/1.0.5-0.1.el4 SeaMonkey/1.0.5 |
Try
\once \override NoteHead #'balloon-padding = #0.6
The property name is listed if you click on the link to
text-balloon-interface,
even though the text describing the property is missing.
/Mats
Rick Hansen (aka RickH) wrote:
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
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================