[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 155 in lilypond: \parenthesize does not take accidentals into
From: |
lilypond |
Subject: |
Re: Issue 155 in lilypond: \parenthesize does not take accidentals into account |
Date: |
Sun, 22 May 2011 21:33:26 +0000 |
Comment #6 on issue 155 by address@hidden: \parenthesize does not take
accidentals into account
http://code.google.com/p/lilypond/issues/detail?id=155
Bravo! This is very exciting. Just a heads up though, this example seems to
prefer parentheses that align with spaces rather than lines:
\version "2.15.0"
\score {
\new Staff {
% parentheses not included in spacing calculations
\override Voice.NoteColumn #'X-extent = #'(-10 . 10)
<\parenthesize ais'>4. <\parenthesize bes'>
}
\layout {
\context {
\Voice
\override ParenthesesItem #'stencil = #(lambda (grob)
(let* ((acc (ly:grob-object (ly:grob-parent grob
Y) 'accidental-grob))
(dot (ly:grob-object (ly:grob-parent grob Y) 'dot)))
(if (not (null? acc)) (ly:pointer-group-interface::add-grob
grob 'elements acc))
(if (not (null? dot)) (ly:pointer-group-interface::add-grob
grob 'elements dot))
(parentheses-item::print grob)))
}
}
}
Attachments:
parens.png 2.0 KB