Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter https://lilypondforum.de zu finden. This is the archive of the old forum (until March 2017). You can find the current forum at https://lilypondforum.de.
es gibt doch noch ein Problem:im Originaltext steht "bes!2 b\rest2" - die Klammer schließt das Vorzeichen nicht mit ein...
\version "2.18.2"%% this issue 155 - \parenthesize does not take accidentals into account%% https://code.google.com/p/lilypond/issues/detail?id=155%% Because the propblem mentioned there is present here as well,%% we need an additional override.\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))) }}startParenthesis = { \once \override ParenthesesItem.stencils = #(lambda (grob) (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))) (list (car par-list) point-stencil )))}endParenthesis = { \once \override ParenthesesItem.stencils = #(lambda (grob) (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))) (list point-stencil (cadr par-list))))} \relative c'' {<< { R1 } \\ { %% hmm, using 'extra-offset %% how to do it better? \once \override ParenthesesItem.extra-offset = #'(0 . -0.35) \override ParenthesesItem.font-size = #-1 \startParenthesis \parenthesize bes!2 \endParenthesis \parenthesize b2\rest \revert ParenthesesItem.font-size }>>}