bug-lilypond
[Top][All Lists]
Advanced

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

Re: Issue 2205 in lilypond: Breathing sign is positioned incorrectly aft


From: lilypond
Subject: Re: Issue 2205 in lilypond: Breathing sign is positioned incorrectly after changing Staff or TabStaff size
Date: Mon, 09 Jan 2012 22:20:17 +0000


Comment #1 on issue 2205 by address@hidden: Breathing sign is positioned incorrectly after changing Staff or TabStaff size
http://code.google.com/p/lilypond/issues/detail?id=2205

Possible work-arounds, created by Arnold from the german lilypondforum:

In <file.ly>:

%\version "2.12.3"
\version "2.14.2"
%\version "2.15.20"

#(define (corrected-breathing-sign-offset-callback my-grob)
  (let* ((my-staff (ly:grob-object my-grob 'staff-symbol))
         (normal-Y (ly:breathing-sign::offset-callback my-grob))
(szB (if (null? my-staff) (1.0) (ly:grob-property my-staff 'staff-space 1.0))))
   (* szB normal-Y)))

mel = {
\override BreathingSign #'Y-offset = #corrected-breathing-sign-offset-callback
        c'1 \breathe
}

\score {
        <<
        \new Staff\with {
                fontSize = #-4
                \override StaffSymbol #'staff-space = #(magstep -4)
                \override StaffSymbol #'thickness = #(magstep -4)
        }
        \mel

        \new Staff
        \mel

        \new TabStaff
        \mel
        >>
}

In define-grobs.scm:

Add the definition above to define-grobs.scm and change in BreathingSign
(Y-offset . ,ly:breathing-sign::offset-callback)
to
(Y-offset . ,corrected-breathing-sign-offset-callback)





reply via email to

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