Comment #6 on issue 155 by ahawry...@gmail.com: \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


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to