lilypond-user
[Top][All Lists]
Advanced

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

Different --- and "undesired" --- bboxes for dynamics


From: Dmytro O. Redchuk
Subject: Different --- and "undesired" --- bboxes for dynamics
Date: Mon, 9 Aug 2010 12:55:54 +0300
User-agent: Mutt/1.5.20 (2009-06-14)

Hi.

Trying to set 'whiteout = #t for DynamicText in different situations, i have
noticed that some dynamic marks do not squeeze into own bounding box --- please
see sample and attached image:

%---------------8<--------------------------------
\version "2.13.29"

#(define (boxDyn dynamic)
         (make-music
           'AbsoluteDynamicEvent
           'text
           (markup
              #:override '(box-padding . 0)
              #:override '(thickness . 0.1)
                #:box dynamic)))

boxP = #(boxDyn "p")
boxMP = #(boxDyn "mp")
boxF = #(boxDyn "f")
boxMF = #(boxDyn "mf")
boxSFZ = #(boxDyn "sfz")
boxSP = #(boxDyn "sp")

mel = \relative c'' {
  c1 \boxP
  c1 \boxMP
  c1 \boxMF
  c1 \boxF
  c1 \boxSFZ
  c1 \boxSP
}

{ \mel }
%---------------8<--------------------------------

So, i have two questions. Please help.


1. Was this intended? If so, why? Or is this an issue?


2. I've tried to override 'text property for DynamicText:

%---------------8<--------------------------------
\relative c'' {
  \override DynamicText #'text = \markup\italic "foo"
  c1 \p
}
%---------------8<--------------------------------

But this does not work for some reason. Please, what i'm doing wrong?

Thank you.

-- 
  Dmytro O. Redchuk
  Bug Squad

Attachment: boxedDynamics--bad-whiteout.png
Description: PNG image


reply via email to

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